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
855ce5bd
Commit
855ce5bd
authored
Dec 03, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Dec 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Skip tests if we can't create the D3D8 object.
parent
522d836c
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
8 deletions
+29
-8
device.c
dlls/d3d8/tests/device.c
+9
-0
surface.c
dlls/d3d8/tests/surface.c
+5
-2
texture.c
dlls/d3d8/tests/texture.c
+5
-2
visual.c
dlls/d3d8/tests/visual.c
+5
-2
volume.c
dlls/d3d8/tests/volume.c
+5
-2
No files found.
dlls/d3d8/tests/device.c
View file @
855ce5bd
...
@@ -1365,6 +1365,15 @@ START_TEST(device)
...
@@ -1365,6 +1365,15 @@ START_TEST(device)
ok
(
pDirect3DCreate8
!=
NULL
,
"Failed to get address of Direct3DCreate8
\n
"
);
ok
(
pDirect3DCreate8
!=
NULL
,
"Failed to get address of Direct3DCreate8
\n
"
);
if
(
pDirect3DCreate8
)
if
(
pDirect3DCreate8
)
{
{
IDirect3D8
*
d3d8
;
d3d8
=
pDirect3DCreate8
(
D3D_SDK_VERSION
);
if
(
!
d3d8
)
{
skip
(
"could not create D3D8
\n
"
);
return
;
}
IDirect3D8_Release
(
d3d8
);
test_display_modes
();
test_display_modes
();
test_shader_versions
();
test_shader_versions
();
test_swapchain
();
test_swapchain
();
...
...
dlls/d3d8/tests/surface.c
View file @
855ce5bd
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
if
(
!
d3d8_create
)
return
NULL
;
if
(
!
d3d8_create
)
return
NULL
;
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
ok
(
d3d8_ptr
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
if
(
!
d3d8_ptr
)
if
(
!
d3d8_ptr
)
return
NULL
;
{
skip
(
"could not create D3D8
\n
"
);
return
NULL
;
}
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
...
...
dlls/d3d8/tests/texture.c
View file @
855ce5bd
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
if
(
!
d3d8_create
)
return
NULL
;
if
(
!
d3d8_create
)
return
NULL
;
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
ok
(
d3d8_ptr
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
if
(
!
d3d8_ptr
)
if
(
!
d3d8_ptr
)
return
NULL
;
{
skip
(
"could not create D3D8
\n
"
);
return
NULL
;
}
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
...
...
dlls/d3d8/tests/visual.c
View file @
855ce5bd
...
@@ -117,8 +117,11 @@ static IDirect3DDevice8 *init_d3d8(void)
...
@@ -117,8 +117,11 @@ static IDirect3DDevice8 *init_d3d8(void)
if
(
!
d3d8_create
)
return
NULL
;
if
(
!
d3d8_create
)
return
NULL
;
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
ok
(
d3d8_ptr
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
if
(
!
d3d8_ptr
)
if
(
!
d3d8_ptr
)
return
NULL
;
{
skip
(
"could not create D3D8
\n
"
);
return
NULL
;
}
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
FALSE
;
present_parameters
.
Windowed
=
FALSE
;
...
...
dlls/d3d8/tests/volume.c
View file @
855ce5bd
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
...
@@ -44,8 +44,11 @@ static IDirect3DDevice8 *init_d3d8(HMODULE d3d8_handle)
if
(
!
d3d8_create
)
return
NULL
;
if
(
!
d3d8_create
)
return
NULL
;
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
d3d8_ptr
=
d3d8_create
(
D3D_SDK_VERSION
);
ok
(
d3d8_ptr
!=
NULL
,
"Failed to create IDirect3D8 object
\n
"
);
if
(
!
d3d8_ptr
)
if
(
!
d3d8_ptr
)
return
NULL
;
{
skip
(
"could not create D3D8
\n
"
);
return
NULL
;
}
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
IDirect3D8_GetAdapterDisplayMode
(
d3d8_ptr
,
D3DADAPTER_DEFAULT
,
&
d3ddm
);
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
...
...
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