Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2d6e661f
Commit
2d6e661f
authored
Jul 25, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Jul 25, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: D3d8 shaders can have a NULL pFunction, but a valid vertex declaration.
parent
12a9dfd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
drawprim.c
dlls/wined3d/drawprim.c
+2
-2
vertexbuffer.c
dlls/wined3d/vertexbuffer.c
+1
-1
No files found.
dlls/wined3d/drawprim.c
View file @
2d6e661f
...
...
@@ -423,7 +423,7 @@ void primitiveDeclarationConvertToStridedData(
int
reg
;
/* Locate the vertex declaration */
if
(
useVertexShaderFunction
&&
((
IWineD3DVertexShaderImpl
*
)
This
->
stateBlock
->
vertexShader
)
->
vertexDeclaration
)
{
if
(
This
->
stateBlock
->
vertexShader
&&
((
IWineD3DVertexShaderImpl
*
)
This
->
stateBlock
->
vertexShader
)
->
vertexDeclaration
)
{
TRACE
(
"Using vertex declaration from shader
\n
"
);
vertexDeclaration
=
(
IWineD3DVertexDeclarationImpl
*
)((
IWineD3DVertexShaderImpl
*
)
This
->
stateBlock
->
vertexShader
)
->
vertexDeclaration
;
}
else
{
...
...
@@ -2091,7 +2091,7 @@ void drawPrimitive(IWineD3DDevice *iface,
fixup
=
FALSE
;
}
else
if
(
This
->
stateBlock
->
vertexDecl
!=
NULL
||
useVertexShaderFunction
)
{
else
if
(
This
->
stateBlock
->
vertexDecl
||
This
->
stateBlock
->
vertexShader
)
{
/* Note: This is a fixed function or shader codepath.
* This means it must handle both types of strided data.
...
...
dlls/wined3d/vertexbuffer.c
View file @
2d6e661f
...
...
@@ -222,7 +222,7 @@ static void WINAPI IWineD3DVertexBufferImpl_PreLoad(IWineD3DVertexBuffer *if
/* Check against updated declarations */
memset
(
&
strided
,
0
,
sizeof
(
strided
));
if
(
device
->
stateBlock
->
vertexDecl
!=
NULL
)
{
if
(
device
->
stateBlock
->
vertexDecl
||
device
->
stateBlock
->
vertexShader
)
{
/* Check against the stream offset and make sure it is 0 */
This
->
Flags
|=
VBFLAG_LOAD
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment