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
fc987aaa
Commit
fc987aaa
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
d3d9/tests: Add more GetBackBuffer error handling tests.
parent
feb35006
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
device.c
dlls/d3d9/tests/device.c
+12
-0
No files found.
dlls/d3d9/tests/device.c
View file @
fc987aaa
...
...
@@ -1085,6 +1085,18 @@ static void test_swapchain(void)
ok
(
d3dpp
.
BackBufferCount
==
1
,
"Got unexpected back buffer count %u.
\n
"
,
d3dpp
.
BackBufferCount
);
IDirect3DSwapChain9_Release
(
swapchain0
);
hr
=
IDirect3DSwapChain9_GetBackBuffer
(
swapchain0
,
0
,
D3DBACKBUFFER_TYPE_MONO
,
NULL
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
/* IDirect3DDevice9::GetBackBuffer crashes if a NULL output pointer is passed. */
backbuffer
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirect3DDevice9_GetBackBuffer
(
device
,
1
,
0
,
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
);
backbuffer
=
(
void
*
)
0xdeadbeef
;
hr
=
IDirect3DDevice9_GetBackBuffer
(
device
,
0
,
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
);
/* Check if there is a back buffer */
hr
=
IDirect3DSwapChain9_GetBackBuffer
(
swapchain0
,
0
,
D3DBACKBUFFER_TYPE_MONO
,
&
backbuffer
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get the 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