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
b2d96086
Commit
b2d96086
authored
May 10, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
May 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set pIndexData to 0 in DrawIndexedPrimitiveUP.
parent
257692e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
device.c
dlls/wined3d/device.c
+4
-7
No files found.
dlls/wined3d/device.c
View file @
b2d96086
...
...
@@ -5330,9 +5330,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawPrimitiveUP(IWineD3DDevice *iface, D3DPRIM
drawPrimitive
(
iface
,
PrimitiveType
,
PrimitiveCount
,
0
/* start vertex */
,
0
/* NumVertices */
,
0
/* indxStart*/
,
0
/* indxSize*/
,
NULL
/* indxData */
,
0
/* indxMin */
,
NULL
);
/* stream zero settings set to null at end, as per the msdn
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawPrimitiveUP.asp
*/
/* MSDN specifies stream zero settings must be set to NULL */
This
->
stateBlock
->
streamStride
[
0
]
=
0
;
This
->
stateBlock
->
streamSource
[
0
]
=
NULL
;
...
...
@@ -5373,13 +5372,11 @@ HRESULT WINAPI IWineD3DDeviceImpl_DrawIndexedPrimitiveUP(IWineD3DDevice *iface,
This
->
stateBlock
->
streamStride
[
0
]
=
VertexStreamZeroStride
;
drawPrimitive
(
iface
,
PrimitiveType
,
PrimitiveCount
,
0
/* vertexStart */
,
NumVertices
,
0
/* indxStart */
,
idxStride
,
pIndexData
,
MinVertexIndex
,
NULL
);
/* stream zero settings set to null at end as per the msdn
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_c/directx/graphics/reference/d3d/interfaces/idirect3ddevice9/DrawPrimitiveUP.asp
*/
/*
stream zero settings set to null at end as per the msdn
*/
/*
MSDN specifies stream zero settings and index buffer must be set to NULL
*/
This
->
stateBlock
->
streamSource
[
0
]
=
NULL
;
This
->
stateBlock
->
streamStride
[
0
]
=
0
;
This
->
stateBlock
->
pIndexData
=
NULL
;
return
WINED3D_OK
;
}
...
...
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