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
76c43d81
Commit
76c43d81
authored
Sep 03, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Add more GetBackBuffer error handling tests.
parent
fc987aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
device.c
dlls/d3d8/tests/device.c
+9
-0
No files found.
dlls/d3d8/tests/device.c
View file @
76c43d81
...
...
@@ -280,6 +280,12 @@ static void test_swapchain(void)
goto
cleanup
;
}
backbuffer
=
(
void
*
)
0xdeadbeef
;
/* IDirect3DDevice8::GetBackBuffer crashes if a NULL output pointer is passed. */
hr
=
IDirect3DDevice8_GetBackBuffer
(
device
,
1
,
D3DBACKBUFFER_TYPE_MONO
,
&
backbuffer
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
!
backbuffer
,
"The back buffer pointer is %p, expected NULL.
\n
"
,
backbuffer
);
memset
(
&
d3dpp
,
0
,
sizeof
(
d3dpp
));
d3dpp
.
Windowed
=
TRUE
;
d3dpp
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
...
...
@@ -300,6 +306,9 @@ static void test_swapchain(void)
ok
(
SUCCEEDED
(
hr
),
"Failed to create a swapchain (%#08x)
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
{
/* Swapchain 3, created with backbuffercount 2 */
hr
=
IDirect3DSwapChain8_GetBackBuffer
(
swapchain3
,
0
,
0
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
backbuffer
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirect3DSwapChain8_GetBackBuffer
(
swapchain3
,
0
,
0
,
&
backbuffer
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get the 1st back buffer (%#08x)
\n
"
,
hr
);
...
...
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