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
64d9bc87
Commit
64d9bc87
authored
Dec 06, 2022
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Get rid of unnecessary checks.
parent
8031d00f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
core.c
dlls/d3dx9_36/tests/core.c
+12
-18
No files found.
dlls/d3dx9_36/tests/core.c
View file @
64d9bc87
...
...
@@ -1210,27 +1210,21 @@ static void test_D3DXCreateRenderToSurface(IDirect3DDevice9 *device)
hr
=
D3DXCreateRenderToSurface
(
device
,
256
,
256
,
D3DFMT_A8R8G8B8
,
FALSE
,
D3DFMT_UNKNOWN
,
NULL
/* out */
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXCreateRenderToSurface returned %#lx, expected %#lx
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
{
hr
=
D3DXCreateRenderToSurface
(
device
,
tests
[
i
].
Width
,
tests
[
i
].
Height
,
tests
[
i
].
Format
,
tests
[
i
].
DepthStencil
,
tests
[
i
].
DepthStencilFormat
,
&
render
);
ok
(
hr
==
D3D_OK
,
"%d: D3DXCreateRenderToSurface returned %#lx, expected %#lx
\n
"
,
i
,
hr
,
D3D_OK
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ID3DXRenderToSurface_GetDesc
(
render
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"%d: GetDesc failed %#lx
\n
"
,
i
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
ok
(
desc
.
Width
==
tests
[
i
].
Width
,
"%d: Got width %u, expected %u
\n
"
,
i
,
desc
.
Width
,
tests
[
i
].
Width
);
ok
(
desc
.
Height
==
tests
[
i
].
Height
,
"%d: Got height %u, expected %u
\n
"
,
i
,
desc
.
Height
,
tests
[
i
].
Height
);
ok
(
desc
.
Format
==
tests
[
i
].
Format
,
"%d: Got format %#x, expected %#x
\n
"
,
i
,
desc
.
Format
,
tests
[
i
].
Format
);
ok
(
desc
.
DepthStencil
==
tests
[
i
].
DepthStencil
,
"%d: Got depth stencil %d, expected %d
\n
"
,
i
,
desc
.
DepthStencil
,
tests
[
i
].
DepthStencil
);
ok
(
desc
.
DepthStencilFormat
==
tests
[
i
].
DepthStencilFormat
,
"%d: Got depth stencil format %#x, expected %#x
\n
"
,
i
,
desc
.
DepthStencilFormat
,
tests
[
i
].
DepthStencilFormat
);
}
ID3DXRenderToSurface_Release
(
render
);
}
ok
(
hr
==
D3D_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
ID3DXRenderToSurface_GetDesc
(
render
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
desc
.
Width
==
tests
[
i
].
Width
,
"%d: Got width %u, expected %u
\n
"
,
i
,
desc
.
Width
,
tests
[
i
].
Width
);
ok
(
desc
.
Height
==
tests
[
i
].
Height
,
"%d: Got height %u, expected %u
\n
"
,
i
,
desc
.
Height
,
tests
[
i
].
Height
);
ok
(
desc
.
Format
==
tests
[
i
].
Format
,
"%d: Got format %#x, expected %#x
\n
"
,
i
,
desc
.
Format
,
tests
[
i
].
Format
);
ok
(
desc
.
DepthStencil
==
tests
[
i
].
DepthStencil
,
"%d: Got depth stencil %d, expected %d
\n
"
,
i
,
desc
.
DepthStencil
,
tests
[
i
].
DepthStencil
);
ok
(
desc
.
DepthStencilFormat
==
tests
[
i
].
DepthStencilFormat
,
"%d: Got depth stencil format %#x, expected %#x
\n
"
,
i
,
desc
.
DepthStencilFormat
,
tests
[
i
].
DepthStencilFormat
);
ID3DXRenderToSurface_Release
(
render
);
}
/* check device ref count */
...
...
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