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
f166b298
Commit
f166b298
authored
Mar 07, 2024
by
Robin Kertels
Committed by
Alexandre Julliard
Mar 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Skip desktop window tests if device creation fails.
Signed-off-by:
Robin Kertels
<
robin.kertels@gmail.com
>
parent
47be32f3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
visual.c
dlls/d3d9/tests/visual.c
+7
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
f166b298
...
@@ -26438,6 +26438,8 @@ static void test_desktop_window(void)
...
@@ -26438,6 +26438,8 @@ static void test_desktop_window(void)
device
=
create_device
(
d3d
,
GetDesktopWindow
(),
GetDesktopWindow
(),
TRUE
);
device
=
create_device
(
d3d
,
GetDesktopWindow
(),
GetDesktopWindow
(),
TRUE
);
ok
(
!!
device
,
"Failed to create a D3D device.
\n
"
);
ok
(
!!
device
,
"Failed to create a D3D device.
\n
"
);
if
(
device
)
{
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xffff0000
,
1
.
0
f
,
0
);
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xffff0000
,
1
.
0
f
,
0
);
ok
(
SUCCEEDED
(
hr
),
"Failed to clear, hr %#lx.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to clear, hr %#lx.
\n
"
,
hr
);
color
=
getPixelColor
(
device
,
1
,
1
);
color
=
getPixelColor
(
device
,
1
,
1
);
...
@@ -26448,6 +26450,11 @@ static void test_desktop_window(void)
...
@@ -26448,6 +26450,11 @@ static void test_desktop_window(void)
refcount
=
IDirect3DDevice9_Release
(
device
);
refcount
=
IDirect3DDevice9_Release
(
device
);
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
ok
(
!
refcount
,
"Device has %lu references left.
\n
"
,
refcount
);
}
else
{
skip
(
"Failed to create a D3D device for the desktop window, skipping tests.
\n
"
);
}
/* test device with NULL HWND */
/* test device with NULL HWND */
device
=
create_device
(
d3d
,
NULL
,
NULL
,
TRUE
);
device
=
create_device
(
d3d
,
NULL
,
NULL
,
TRUE
);
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