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
44b462c9
Commit
44b462c9
authored
Jan 04, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Just restore state->user_stream in wined3d_device_draw_indexed_primitive_strided().
parent
b557f5ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
device.c
dlls/wined3d/device.c
+1
-13
No files found.
dlls/wined3d/device.c
View file @
44b462c9
...
...
@@ -4067,13 +4067,6 @@ HRESULT CDECL wined3d_device_draw_primitive(struct wined3d_device *device, UINT
return
WINED3DERR_INVALIDCALL
;
}
/* The index buffer is not needed here, but restore it, otherwise it is hell to keep track of */
if
(
device
->
stateBlock
->
state
.
user_stream
)
{
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
device
->
stateBlock
->
state
.
user_stream
=
FALSE
;
}
if
(
device
->
stateBlock
->
state
.
load_base_vertex_index
)
{
device
->
stateBlock
->
state
.
load_base_vertex_index
=
0
;
...
...
@@ -4108,12 +4101,6 @@ HRESULT CDECL wined3d_device_draw_indexed_primitive(struct wined3d_device *devic
return
WINED3DERR_INVALIDCALL
;
}
if
(
device
->
stateBlock
->
state
.
user_stream
)
{
device_invalidate_state
(
device
,
STATE_INDEXBUFFER
);
device
->
stateBlock
->
state
.
user_stream
=
FALSE
;
}
if
(
!
gl_info
->
supported
[
ARB_DRAW_ELEMENTS_BASE_VERTEX
]
&&
device
->
stateBlock
->
state
.
load_base_vertex_index
!=
device
->
stateBlock
->
state
.
base_vertex_index
)
{
...
...
@@ -4180,6 +4167,7 @@ HRESULT CDECL wined3d_device_draw_indexed_primitive_strided(struct wined3d_devic
device
->
up_strided
=
strided_data
;
draw_primitive
(
device
,
0
,
index_count
,
0
,
0
,
TRUE
,
index_data
);
device
->
up_strided
=
NULL
;
device
->
stateBlock
->
state
.
user_stream
=
FALSE
;
device
->
stateBlock
->
state
.
index_format
=
prev_idx_format
;
device_invalidate_state
(
device
,
STATE_VDECL
);
...
...
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