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
284e92de
Commit
284e92de
authored
Apr 07, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 08, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Validate some more states.
parent
e24473d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
state.c
dlls/wined3d/state.c
+21
-0
No files found.
dlls/wined3d/state.c
View file @
284e92de
...
@@ -5670,6 +5670,20 @@ static void validate_state_table(struct StateEntry *state_table)
...
@@ -5670,6 +5670,20 @@ static void validate_state_table(struct StateEntry *state_table)
{
196
,
197
},
{
196
,
197
},
{
0
,
0
},
{
0
,
0
},
};
};
static
const
DWORD
simple_states
[]
=
{
STATE_MATERIAL
,
STATE_VDECL
,
STATE_STREAMSRC
,
STATE_INDEXBUFFER
,
STATE_VERTEXSHADERCONSTANT
,
STATE_PIXELSHADERCONSTANT
,
STATE_VSHADER
,
STATE_PIXELSHADER
,
STATE_VIEWPORT
,
STATE_SCISSORRECT
,
STATE_FRONTFACE
,
};
unsigned
int
i
,
current
;
unsigned
int
i
,
current
;
for
(
i
=
STATE_RENDER
(
1
),
current
=
0
;
i
<=
STATE_RENDER
(
WINEHIGHEST_RENDER_STATE
);
++
i
)
for
(
i
=
STATE_RENDER
(
1
),
current
=
0
;
i
<=
STATE_RENDER
(
WINEHIGHEST_RENDER_STATE
);
++
i
)
...
@@ -5685,6 +5699,13 @@ static void validate_state_table(struct StateEntry *state_table)
...
@@ -5685,6 +5699,13 @@ static void validate_state_table(struct StateEntry *state_table)
if
(
i
==
STATE_RENDER
(
rs_holes
[
current
].
last
))
++
current
;
if
(
i
==
STATE_RENDER
(
rs_holes
[
current
].
last
))
++
current
;
}
}
for
(
i
=
0
;
i
<
sizeof
(
simple_states
)
/
sizeof
(
*
simple_states
);
++
i
)
{
if
(
!
state_table
[
simple_states
[
i
]].
representative
)
ERR
(
"State %s (%#x) should have a representative.
\n
"
,
debug_d3dstate
(
simple_states
[
i
]),
simple_states
[
i
]);
}
for
(
i
=
0
;
i
<
STATE_HIGHEST
+
1
;
++
i
)
for
(
i
=
0
;
i
<
STATE_HIGHEST
+
1
;
++
i
)
{
{
DWORD
rep
=
state_table
[
i
].
representative
;
DWORD
rep
=
state_table
[
i
].
representative
;
...
...
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