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
e8e4fac9
Commit
e8e4fac9
authored
Feb 26, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not record the GL primitive type in stateblocks.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7b18ff5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
24 deletions
+4
-24
device.c
dlls/wined3d/device.c
+3
-5
stateblock.c
dlls/wined3d/stateblock.c
+0
-17
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-2
No files found.
dlls/wined3d/device.c
View file @
e8e4fac9
...
...
@@ -3449,11 +3449,9 @@ void CDECL wined3d_device_set_primitive_type(struct wined3d_device *device,
TRACE
(
"device %p, primitive_type %s
\n
"
,
device
,
debug_d3dprimitivetype
(
primitive_type
));
gl_primitive_type
=
gl_primitive_type_from_d3d
(
primitive_type
);
prev
=
device
->
update_state
->
gl_primitive_type
;
device
->
update_state
->
gl_primitive_type
=
gl_primitive_type
;
if
(
device
->
recording
)
device
->
recording
->
changed
.
primitive_type
=
TRUE
;
else
if
(
gl_primitive_type
!=
prev
&&
(
gl_primitive_type
==
GL_POINTS
||
prev
==
GL_POINTS
))
prev
=
device
->
state
.
gl_primitive_type
;
device
->
state
.
gl_primitive_type
=
gl_primitive_type
;
if
(
gl_primitive_type
!=
prev
&&
(
gl_primitive_type
==
GL_POINTS
||
prev
==
GL_POINTS
))
device_invalidate_state
(
device
,
STATE_POINT_ENABLE
);
}
...
...
dlls/wined3d/stateblock.c
View file @
e8e4fac9
...
...
@@ -202,7 +202,6 @@ static void stateblock_savedstates_set_all(struct wined3d_saved_states *states,
unsigned
int
i
;
/* Single values */
states
->
primitive_type
=
1
;
states
->
indices
=
1
;
states
->
material
=
1
;
states
->
viewport
=
1
;
...
...
@@ -772,9 +771,6 @@ void CDECL wined3d_stateblock_capture(struct wined3d_stateblock *stateblock)
stateblock
->
state
.
transforms
[
transform
]
=
src_state
->
transforms
[
transform
];
}
if
(
stateblock
->
changed
.
primitive_type
)
stateblock
->
state
.
gl_primitive_type
=
src_state
->
gl_primitive_type
;
if
(
stateblock
->
changed
.
indices
&&
((
stateblock
->
state
.
index_buffer
!=
src_state
->
index_buffer
)
||
(
stateblock
->
state
.
base_vertex_index
!=
src_state
->
base_vertex_index
)
...
...
@@ -1045,19 +1041,6 @@ void CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblock)
&
stateblock
->
state
.
transforms
[
stateblock
->
contained_transform_states
[
i
]]);
}
if
(
stateblock
->
changed
.
primitive_type
)
{
GLenum
gl_primitive_type
,
prev
;
if
(
device
->
recording
)
device
->
recording
->
changed
.
primitive_type
=
TRUE
;
gl_primitive_type
=
stateblock
->
state
.
gl_primitive_type
;
prev
=
device
->
update_state
->
gl_primitive_type
;
device
->
update_state
->
gl_primitive_type
=
gl_primitive_type
;
if
(
gl_primitive_type
!=
prev
&&
(
gl_primitive_type
==
GL_POINTS
||
prev
==
GL_POINTS
))
device_invalidate_state
(
device
,
STATE_POINT_ENABLE
);
}
if
(
stateblock
->
changed
.
indices
)
{
wined3d_device_set_index_buffer
(
device
,
stateblock
->
state
.
index_buffer
,
...
...
dlls/wined3d/wined3d_private.h
View file @
e8e4fac9
...
...
@@ -3101,7 +3101,6 @@ struct wined3d_saved_states
WORD
vertexShaderConstantsI
;
/* WINED3D_MAX_CONSTS_I, 16 */
BOOL
vs_consts_f
[
WINED3D_MAX_VS_CONSTS_F
];
DWORD
textures
:
20
;
/* MAX_COMBINED_SAMPLERS, 20 */
DWORD
primitive_type
:
1
;
DWORD
indices
:
1
;
DWORD
material
:
1
;
DWORD
viewport
:
1
;
...
...
@@ -3109,7 +3108,7 @@ struct wined3d_saved_states
DWORD
pixelShader
:
1
;
DWORD
vertexShader
:
1
;
DWORD
scissorRect
:
1
;
DWORD
padding
:
4
;
DWORD
padding
:
5
;
};
struct
StageState
{
...
...
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