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
4d4a4ff5
Commit
4d4a4ff5
authored
Sep 28, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Oct 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Add test for NULL hDeviceWindow in presentation parameters.
parent
2c9ab243
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
device.c
dlls/d3d8/tests/device.c
+5
-3
No files found.
dlls/d3d8/tests/device.c
View file @
4d4a4ff5
...
...
@@ -413,9 +413,10 @@ static void test_swapchain(void)
ok
(
SUCCEEDED
(
hr
),
"Got hr %#lx.
\n
"
,
hr
);
ok
(
d3dpp
.
BackBufferCount
==
1
,
"The back buffer count in the presentparams struct is %d
\n
"
,
d3dpp
.
BackBufferCount
);
d3dpp
.
hDeviceWindow
=
NULL
;
d3dpp
.
BackBufferCount
=
1
;
hr
=
IDirect3DDevice8_CreateAdditionalSwapChain
(
device
,
&
d3dpp
,
&
swapchain2
);
ok
(
SUCCEEDED
(
hr
)
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got hr %#lx.
\n
"
,
hr
);
d3dpp
.
BackBufferCount
=
2
;
hr
=
IDirect3DDevice8_CreateAdditionalSwapChain
(
device
,
&
d3dpp
,
&
swapchain3
);
...
...
@@ -8714,6 +8715,7 @@ static void test_swapchain_parameters(void)
present_parameters_windowed
.
Windowed
=
TRUE
;
present_parameters_windowed
.
BackBufferCount
=
1
;
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
++
i
)
{
UINT
bb_count
=
tests
[
i
].
backbuffer_count
?
tests
[
i
].
backbuffer_count
:
1
;
...
...
@@ -8721,7 +8723,7 @@ static void test_swapchain_parameters(void)
memset
(
&
present_parameters
,
0
,
sizeof
(
present_parameters
));
present_parameters
.
BackBufferWidth
=
registry_mode
.
dmPelsWidth
;
present_parameters
.
BackBufferHeight
=
registry_mode
.
dmPelsHeight
;
present_parameters
.
hDeviceWindow
=
window
;
present_parameters
.
hDeviceWindow
=
NULL
;
present_parameters
.
BackBufferFormat
=
D3DFMT_X8R8G8B8
;
present_parameters
.
SwapEffect
=
tests
[
i
].
swap_effect
;
...
...
@@ -8752,7 +8754,7 @@ static void test_swapchain_parameters(void)
memset
(
&
present_parameters
,
0
,
sizeof
(
present_parameters
));
present_parameters
.
BackBufferWidth
=
registry_mode
.
dmPelsWidth
;
present_parameters
.
BackBufferHeight
=
registry_mode
.
dmPelsHeight
;
present_parameters
.
hDeviceWindow
=
window
;
present_parameters
.
hDeviceWindow
=
NULL
;
present_parameters
.
BackBufferFormat
=
D3DFMT_X8R8G8B8
;
present_parameters
.
SwapEffect
=
tests
[
i
].
swap_effect
;
...
...
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