Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5a99be32
Commit
5a99be32
authored
Jul 31, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Aug 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add basic tests for ID3DXRenderToEnvMap.
parent
17d92f3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
core.c
dlls/d3dx9_36/tests/core.c
+43
-0
No files found.
dlls/d3dx9_36/tests/core.c
View file @
5a99be32
...
@@ -1084,6 +1084,48 @@ static void test_D3DXCreateRenderToEnvMap(IDirect3DDevice9 *device)
...
@@ -1084,6 +1084,48 @@ static void test_D3DXCreateRenderToEnvMap(IDirect3DDevice9 *device)
if
(
SUCCEEDED
(
hr
))
ID3DXRenderToEnvMap_Release
(
render
);
if
(
SUCCEEDED
(
hr
))
ID3DXRenderToEnvMap_Release
(
render
);
}
}
static
void
test_ID3DXRenderToEnvMap
(
IDirect3DDevice9
*
device
)
{
HRESULT
hr
;
ID3DXRenderToEnvMap
*
render
;
hr
=
D3DXCreateRenderToEnvMap
(
device
,
256
,
0
,
D3DFMT_A8R8G8B8
,
FALSE
,
D3DFMT_UNKNOWN
,
&
render
);
if
(
SUCCEEDED
(
hr
))
{
ULONG
ref_count
;
IDirect3DDevice9
*
out_device
;
hr
=
ID3DXRenderToEnvMap_GetDesc
(
render
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::GetDesc returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXRenderToEnvMap_GetDevice
(
render
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::GetDevice returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
ref_count
=
get_ref
((
IUnknown
*
)
device
);
hr
=
ID3DXRenderToEnvMap_GetDevice
(
render
,
&
out_device
);
ok
(
hr
==
D3D_OK
,
"ID3DXRenderToEnvMap::GetDevice returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
out_device
==
device
,
"ID3DXRenderToEnvMap::GetDevice returned different device
\n
"
);
check_release
((
IUnknown
*
)
device
,
ref_count
);
hr
=
ID3DXRenderToEnvMap_End
(
render
,
D3DX_FILTER_NONE
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::End returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
hr
=
ID3DXRenderToEnvMap_BeginCube
(
render
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::BeginCube returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXRenderToEnvMap_BeginHemisphere
(
render
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::BeginHemisphere returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXRenderToEnvMap_BeginParabolic
(
render
,
NULL
,
NULL
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::BeginParabolic returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
ID3DXRenderToEnvMap_BeginSphere
(
render
,
NULL
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"ID3DXRenderToEnvMap::BeginSphere returned %#x, exected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
check_release
((
IUnknown
*
)
render
,
0
);
}
else
skip
(
"Failed to create ID3DXRenderToEnvMap
\n
"
);
}
START_TEST
(
core
)
START_TEST
(
core
)
{
{
HWND
wnd
;
HWND
wnd
;
...
@@ -1121,6 +1163,7 @@ START_TEST(core)
...
@@ -1121,6 +1163,7 @@ START_TEST(core)
test_D3DXCreateRenderToSurface
(
device
);
test_D3DXCreateRenderToSurface
(
device
);
test_ID3DXRenderToSurface
(
device
);
test_ID3DXRenderToSurface
(
device
);
test_D3DXCreateRenderToEnvMap
(
device
);
test_D3DXCreateRenderToEnvMap
(
device
);
test_ID3DXRenderToEnvMap
(
device
);
check_release
((
IUnknown
*
)
device
,
0
);
check_release
((
IUnknown
*
)
device
,
0
);
check_release
((
IUnknown
*
)
d3d
,
0
);
check_release
((
IUnknown
*
)
d3d
,
0
);
...
...
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