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
f504db74
Commit
f504db74
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 in test_D3DXCreateRenderToEnvMap().
parent
06eede96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
17 deletions
+12
-17
core.c
dlls/d3dx9_36/tests/core.c
+12
-17
No files found.
dlls/d3dx9_36/tests/core.c
View file @
f504db74
...
...
@@ -1649,25 +1649,20 @@ static void test_D3DXCreateRenderToEnvMap(IDirect3DDevice9 *device)
{
const
D3DXRTE_DESC
*
parameters
=
&
tests
[
i
].
parameters
;
const
D3DXRTE_DESC
*
expected
=
&
tests
[
i
].
expected_values
;
hr
=
D3DXCreateRenderToEnvMap
(
device
,
parameters
->
Size
,
parameters
->
MipLevels
,
parameters
->
Format
,
parameters
->
DepthStencil
,
parameters
->
DepthStencilFormat
,
&
render
);
ok
(
hr
==
D3D_OK
,
"%d: D3DXCreateRenderToEnvMap returned %#lx, expected %#lx
\n
"
,
i
,
hr
,
D3D_OK
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
ID3DXRenderToEnvMap_GetDesc
(
render
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"%d: GetDesc failed %#lx
\n
"
,
i
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
ok
(
desc
.
Size
==
expected
->
Size
,
"%d: Got size %u, expected %u
\n
"
,
i
,
desc
.
Size
,
expected
->
Size
);
ok
(
desc
.
MipLevels
==
expected
->
MipLevels
,
"%d: Got miplevels %u, expected %u
\n
"
,
i
,
desc
.
MipLevels
,
expected
->
MipLevels
);
ok
(
desc
.
Format
==
expected
->
Format
,
"%d: Got format %#x, expected %#x
\n
"
,
i
,
desc
.
Format
,
expected
->
Format
);
ok
(
desc
.
DepthStencil
==
expected
->
DepthStencil
,
"%d: Got depth stencil %d, expected %d
\n
"
,
i
,
expected
->
DepthStencil
,
expected
->
DepthStencil
);
ok
(
desc
.
DepthStencilFormat
==
expected
->
DepthStencilFormat
,
"%d: Got depth stencil format %#x, expected %#x
\n
"
,
i
,
expected
->
DepthStencilFormat
,
expected
->
DepthStencilFormat
);
}
check_release
((
IUnknown
*
)
render
,
0
);
}
ok
(
hr
==
D3D_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
ID3DXRenderToEnvMap_GetDesc
(
render
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"%d: GetDesc failed %#lx
\n
"
,
i
,
hr
);
ok
(
desc
.
Size
==
expected
->
Size
,
"%d: Got size %u, expected %u
\n
"
,
i
,
desc
.
Size
,
expected
->
Size
);
ok
(
desc
.
MipLevels
==
expected
->
MipLevels
,
"%d: Got miplevels %u, expected %u
\n
"
,
i
,
desc
.
MipLevels
,
expected
->
MipLevels
);
ok
(
desc
.
Format
==
expected
->
Format
,
"%d: Got format %#x, expected %#x
\n
"
,
i
,
desc
.
Format
,
expected
->
Format
);
ok
(
desc
.
DepthStencil
==
expected
->
DepthStencil
,
"%d: Got depth stencil %d, expected %d
\n
"
,
i
,
expected
->
DepthStencil
,
expected
->
DepthStencil
);
ok
(
desc
.
DepthStencilFormat
==
expected
->
DepthStencilFormat
,
"%d: Got depth stencil format %#x, expected %#x
\n
"
,
i
,
expected
->
DepthStencilFormat
,
expected
->
DepthStencilFormat
);
check_release
((
IUnknown
*
)
render
,
0
);
}
/* 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