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
3caba01e
Commit
3caba01e
authored
Oct 05, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Remove D3D9_RENDER_STATES from the stateblock tests.
parent
6d20b84d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
stateblock.c
dlls/d3d9/tests/stateblock.c
+16
-11
No files found.
dlls/d3d9/tests/stateblock.c
View file @
3caba01e
...
...
@@ -949,9 +949,8 @@ static void transform_queue_test(
/* =================== State test: Render States ===================================== */
#define D3D9_RENDER_STATES 102
const
D3DRENDERSTATETYPE
render_state_indices
[]
=
{
const
D3DRENDERSTATETYPE
render_state_indices
[]
=
{
D3DRS_ZENABLE
,
D3DRS_FILLMODE
,
D3DRS_SHADEMODE
,
...
...
@@ -1060,7 +1059,7 @@ const D3DRENDERSTATETYPE render_state_indices[] = {
};
typedef
struct
render_state_data
{
DWORD
states
[
D3D9_RENDER_STATES
];
DWORD
states
[
sizeof
(
render_state_indices
)
/
sizeof
(
*
render_state_indices
)
];
}
render_state_data
;
typedef
struct
render_state_arg
{
...
...
@@ -1082,7 +1081,8 @@ static void render_state_set_handler(
const
render_state_data
*
rsdata
=
data
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
D3D9_RENDER_STATES
;
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
render_state_indices
)
/
sizeof
(
*
render_state_indices
);
++
i
)
{
hret
=
IDirect3DDevice9_SetRenderState
(
device
,
render_state_indices
[
i
],
rsdata
->
states
[
i
]);
ok
(
hret
==
D3D_OK
,
"SetRenderState returned %#x.
\n
"
,
hret
);
}
...
...
@@ -1095,7 +1095,8 @@ static void render_state_get_handler(
render_state_data
*
rsdata
=
data
;
unsigned
int
i
=
0
;
for
(
i
=
0
;
i
<
D3D9_RENDER_STATES
;
i
++
)
{
for
(
i
=
0
;
i
<
sizeof
(
render_state_indices
)
/
sizeof
(
*
render_state_indices
);
++
i
)
{
hret
=
IDirect3DDevice9_GetRenderState
(
device
,
render_state_indices
[
i
],
&
rsdata
->
states
[
i
]);
ok
(
hret
==
D3D_OK
,
"GetRenderState returned %#x.
\n
"
,
hret
);
}
...
...
@@ -1108,8 +1109,10 @@ static void render_state_print_handler(
const
render_state_data
*
rsdata
=
data
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
D3D9_RENDER_STATES
;
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
render_state_indices
)
/
sizeof
(
*
render_state_indices
);
++
i
)
{
trace
(
"Index = %u, Value = %#x
\n
"
,
i
,
rsdata
->
states
[
i
]);
}
}
static
inline
DWORD
to_dword
(
float
fl
)
{
...
...
@@ -1228,12 +1231,14 @@ static void render_state_default_data_init(const struct render_state_arg *rsarg,
data
->
states
[
idx
++
]
=
TRUE
;
/* BLENDOPALPHA */
}
static
void
render_state_poison_data_init
(
render_state_data
*
data
)
{
static
void
render_state_poison_data_init
(
struct
render_state_data
*
data
)
{
unsigned
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
D3D9_RENDER_STATES
;
i
++
)
for
(
i
=
0
;
i
<
sizeof
(
render_state_indices
)
/
sizeof
(
*
render_state_indices
);
++
i
)
{
data
->
states
[
i
]
=
0x1337c0de
;
}
}
static
void
render_state_test_data_init
(
...
...
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