Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0fc7cd5a
Commit
0fc7cd5a
authored
Aug 19, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Invalidate streamsrc, vdecl and indexbuffer after strided draws.
parent
42a6455e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
device.c
dlls/wined3d/device.c
+16
-0
No files found.
dlls/wined3d/device.c
View file @
0fc7cd5a
...
...
@@ -4242,11 +4242,21 @@ HRESULT CDECL wined3d_device_draw_primitive_strided(struct wined3d_device *devic
* baseVertexIndex because that call is only called by ddraw which does
* not need that value. */
device_invalidate_state
(
device
,
STATE_VDECL
);
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
device
->
stateBlock
->
state
.
base_vertex_index
=
0
;
device
->
up_strided
=
strided_data
;
drawPrimitive
(
device
,
vertex_count
,
0
,
0
,
NULL
);
device
->
up_strided
=
NULL
;
/* Invalidate the states again to make sure the values from the stateblock
* are properly applied in the next regular draw. Note that the application-
* provided strided data has ovwritten pretty much the entire vertex and
* and index stream related states */
device_invalidate_state
(
device
,
STATE_VDECL
);
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
return
WINED3D_OK
;
}
...
...
@@ -4261,12 +4271,18 @@ HRESULT CDECL wined3d_device_draw_indexed_primitive_strided(struct wined3d_devic
* that value.
*/
device_invalidate_state
(
device
,
STATE_VDECL
);
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
device
->
stateBlock
->
state
.
user_stream
=
TRUE
;
device
->
stateBlock
->
state
.
base_vertex_index
=
0
;
device
->
up_strided
=
strided_data
;
drawPrimitive
(
device
,
index_count
,
0
,
index_size
,
index_data
);
device
->
up_strided
=
NULL
;
device_invalidate_state
(
device
,
STATE_VDECL
);
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
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