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
b4d6f90f
Commit
b4d6f90f
authored
Aug 23, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 23, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only update the stateblock's "changed" field if we're recording.
parent
8b8e081d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
32 deletions
+51
-32
device.c
dlls/wined3d/device.c
+50
-28
stateblock.c
dlls/wined3d/stateblock.c
+1
-4
No files found.
dlls/wined3d/device.c
View file @
b4d6f90f
This diff is collapsed.
Click to expand it.
dlls/wined3d/stateblock.c
View file @
b4d6f90f
...
...
@@ -1075,6 +1075,7 @@ void CDECL wined3d_stateblock_apply(const struct wined3d_stateblock *stateblock)
{
GLenum
gl_primitive_type
,
prev
;
if
(
device
->
isRecordingState
)
device
->
updateStateBlock
->
changed
.
primitive_type
=
TRUE
;
gl_primitive_type
=
stateblock
->
state
.
gl_primitive_type
;
prev
=
device
->
updateStateBlock
->
state
.
gl_primitive_type
;
...
...
@@ -1154,7 +1155,6 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
{
struct
wined3d_device
*
device
=
stateblock
->
device
;
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
const
struct
wined3d_d3d_info
*
d3d_info
=
&
device
->
adapter
->
d3d_info
;
struct
wined3d_state
*
state
=
&
stateblock
->
state
;
union
{
...
...
@@ -1178,9 +1178,6 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
TRACE
(
"stateblock %p.
\n
"
,
stateblock
);
memset
(
stateblock
->
changed
.
pixelShaderConstantsF
,
0
,
d3d_info
->
limits
.
ps_uniform_count
*
sizeof
(
BOOL
));
memset
(
stateblock
->
changed
.
vertexShaderConstantsF
,
0
,
d3d_info
->
limits
.
vs_uniform_count
*
sizeof
(
BOOL
));
/* Set some of the defaults for lights, transforms etc */
state
->
transforms
[
WINED3D_TS_PROJECTION
]
=
identity
;
state
->
transforms
[
WINED3D_TS_VIEW
]
=
identity
;
...
...
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