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
dba338f2
Commit
dba338f2
authored
Sep 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Don't test texture states beyond the supported maximum.
parent
5db5744c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
stateblock.c
dlls/d3d9/tests/stateblock.c
+6
-2
No files found.
dlls/d3d9/tests/stateblock.c
View file @
dba338f2
...
...
@@ -23,6 +23,8 @@
static
HMODULE
d3d9_handle
=
0
;
static
DWORD
texture_stages
;
static
HWND
create_window
(
void
)
{
WNDCLASS
wc
=
{
0
};
...
...
@@ -761,7 +763,7 @@ static void transform_set_handler(
hret
=
IDirect3DDevice9_SetTransform
(
device
,
D3DTS_TEXTURE0
,
&
tdata
->
texture0
);
ok
(
hret
==
D3D_OK
,
"SetTransform returned %#lx.
\n
"
,
hret
);
hret
=
IDirect3DDevice9_SetTransform
(
device
,
D3DTS_TEXTURE
7
,
&
tdata
->
texture7
);
hret
=
IDirect3DDevice9_SetTransform
(
device
,
D3DTS_TEXTURE
0
+
texture_stages
-
1
,
&
tdata
->
texture7
);
ok
(
hret
==
D3D_OK
,
"SetTransform returned %#lx.
\n
"
,
hret
);
hret
=
IDirect3DDevice9_SetTransform
(
device
,
D3DTS_WORLD
,
&
tdata
->
world0
);
...
...
@@ -786,7 +788,7 @@ static void transform_get_handler(
hret
=
IDirect3DDevice9_GetTransform
(
device
,
D3DTS_TEXTURE0
,
&
tdata
->
texture0
);
ok
(
hret
==
D3D_OK
,
"GetTransform returned %#lx.
\n
"
,
hret
);
hret
=
IDirect3DDevice9_GetTransform
(
device
,
D3DTS_TEXTURE
7
,
&
tdata
->
texture7
);
hret
=
IDirect3DDevice9_GetTransform
(
device
,
D3DTS_TEXTURE
0
+
texture_stages
-
1
,
&
tdata
->
texture7
);
ok
(
hret
==
D3D_OK
,
"GetTransform returned %#lx.
\n
"
,
hret
);
hret
=
IDirect3DDevice9_GetTransform
(
device
,
D3DTS_WORLD
,
&
tdata
->
world0
);
...
...
@@ -1317,6 +1319,8 @@ static void test_state_management(
ok
(
hret
==
D3D_OK
,
"GetDeviceCaps returned %#lx.
\n
"
,
hret
);
if
(
hret
!=
D3D_OK
)
return
;
texture_stages
=
caps
.
MaxTextureBlendStages
;
if
(
caps
.
VertexShaderVersion
&
0xffff
)
{
shader_constants_queue_test
(
device
,
&
tests
[
tcount
],
&
buffer
[
bcount
],
FALSE
);
bcount
+=
SHADER_CONSTANTS_REQ_BUFFER
;
...
...
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