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
f2e30a0a
Commit
f2e30a0a
authored
Apr 29, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 08, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Unset the StreamIsUP flag in ProcessVertices.
parent
7538f8d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
device.c
dlls/wined3d/device.c
+6
-1
No files found.
dlls/wined3d/device.c
View file @
f2e30a0a
...
...
@@ -3836,7 +3836,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ProcessVertices
(
IWineD3DDevice
*
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IWineD3DVertexBuffer
*
pDestBuffer
,
IWineD3DVertexDeclaration
*
pVertexDecl
,
DWORD
Flags
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
WineDirect3DVertexStridedData
strided
;
BOOL
vbo
=
FALSE
;
BOOL
vbo
=
FALSE
,
streamWasUP
=
This
->
stateBlock
->
streamIsUP
;
TRACE
(
"(%p)->(%d,%d,%d,%p,%p,%d
\n
"
,
This
,
SrcStartIndex
,
DestIndex
,
VertexCount
,
pDestBuffer
,
pVertexDecl
,
Flags
);
if
(
pVertexDecl
)
{
...
...
@@ -3852,12 +3852,17 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ProcessVertices(IWineD3DDevice *iface,
LEAVE_GL
();
}
/* ProcessVertices reads from vertex buffers, which have to be assigned. DrawPrimitive and DrawPrimitiveUP
* control the streamIsUP flag, thus restore it afterwards.
*/
This
->
stateBlock
->
streamIsUP
=
FALSE
;
memset
(
&
strided
,
0
,
sizeof
(
strided
));
if
(
This
->
stateBlock
->
vertexDecl
)
{
primitiveDeclarationConvertToStridedData
(
iface
,
FALSE
,
&
strided
,
&
vbo
);
}
else
{
primitiveConvertToStridedData
(
iface
,
&
strided
,
&
vbo
);
}
This
->
stateBlock
->
streamIsUP
=
streamWasUP
;
if
(
vbo
||
SrcStartIndex
)
{
unsigned
int
i
;
...
...
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