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
a7560cf6
Commit
a7560cf6
authored
Feb 28, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the command stream state in wined3d_cs_exec_draw().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6823abd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cs.c
dlls/wined3d/cs.c
+4
-4
No files found.
dlls/wined3d/cs.c
View file @
a7560cf6
...
...
@@ -581,7 +581,7 @@ void wined3d_cs_emit_dispatch(struct wined3d_cs *cs,
static
void
wined3d_cs_exec_draw
(
struct
wined3d_cs
*
cs
,
const
void
*
data
)
{
struct
wined3d_state
*
state
=
&
cs
->
device
->
state
;
struct
wined3d_state
*
state
=
&
cs
->
state
;
const
struct
wined3d_cs_draw
*
op
=
data
;
unsigned
int
i
;
...
...
@@ -592,11 +592,11 @@ static void wined3d_cs_exec_draw(struct wined3d_cs *cs, const void *data)
device_invalidate_state
(
cs
->
device
,
STATE_BASEVERTEXINDEX
);
}
if
(
cs
->
state
.
gl_primitive_type
!=
op
->
primitive_type
)
if
(
state
->
gl_primitive_type
!=
op
->
primitive_type
)
{
if
(
cs
->
state
.
gl_primitive_type
==
GL_POINTS
||
op
->
primitive_type
==
GL_POINTS
)
if
(
state
->
gl_primitive_type
==
GL_POINTS
||
op
->
primitive_type
==
GL_POINTS
)
device_invalidate_state
(
cs
->
device
,
STATE_POINT_ENABLE
);
cs
->
state
.
gl_primitive_type
=
op
->
primitive_type
;
state
->
gl_primitive_type
=
op
->
primitive_type
;
}
draw_primitive
(
cs
->
device
,
state
,
op
->
base_vertex_idx
,
op
->
start_idx
,
...
...
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