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
6e69d116
Commit
6e69d116
authored
Aug 09, 2011
by
Austin English
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Make sure to use return values (LLVM/Clang).
parent
e2cbe25b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
device.c
dlls/d3d8/tests/device.c
+5
-0
No files found.
dlls/d3d8/tests/device.c
View file @
6e69d116
...
...
@@ -1050,6 +1050,7 @@ static void test_reset(void)
hr
=
IDirect3DDevice8_GetRenderTarget
(
device1
,
&
surface
);
ok
(
SUCCEEDED
(
hr
),
"GetRenderTarget failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DSurface8_GetDesc
(
surface
,
&
surface_desc
);
ok
(
hr
==
D3D_OK
,
"GetDesc failed, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
Width
==
modes
[
i
].
w
,
"Back buffer width is %u, expected %u.
\n
"
,
surface_desc
.
Width
,
modes
[
i
].
w
);
ok
(
surface_desc
.
Height
==
modes
[
i
].
h
,
"Back buffer height is %u, expected %u.
\n
"
,
...
...
@@ -1088,6 +1089,7 @@ static void test_reset(void)
hr
=
IDirect3DDevice8_GetRenderTarget
(
device1
,
&
surface
);
ok
(
SUCCEEDED
(
hr
),
"GetRenderTarget failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DSurface8_GetDesc
(
surface
,
&
surface_desc
);
ok
(
hr
==
D3D_OK
,
"GetDesc failed, hr %#x.
\n
"
,
hr
);
ok
(
surface_desc
.
Width
==
400
,
"Back buffer width is %u, expected 400.
\n
"
,
surface_desc
.
Width
);
ok
(
surface_desc
.
Height
==
300
,
"Back buffer height is %u, expected 300.
\n
"
,
...
...
@@ -2600,15 +2602,18 @@ static void test_depth_stencil_size(void)
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice8_SetRenderTarget failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_GetRenderTarget
(
device
,
&
surf
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice8_GetRenderTarget failed, hr %#x.
\n
"
,
hr
);
ok
(
surf
==
rt
,
"The render target is %p, expected %p
\n
"
,
surf
,
rt
);
IDirect3DSurface8_Release
(
surf
);
hr
=
IDirect3DDevice8_GetDepthStencilSurface
(
device
,
&
surf
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice8_GetDepthStencilSurface failed, hr %#x.
\n
"
,
hr
);
ok
(
surf
==
ds_bigger2
,
"The depth stencil is %p, expected %p
\n
"
,
surf
,
ds_bigger2
);
IDirect3DSurface8_Release
(
surf
);
hr
=
IDirect3DDevice8_SetRenderTarget
(
device
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice8_SetRenderTarget failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice8_GetDepthStencilSurface
(
device
,
&
surf
);
ok
(
FAILED
(
hr
),
"IDirect3DDevice8_GetDepthStencilSurface should have failed, hr %#x.
\n
"
,
hr
);
ok
(
surf
==
NULL
,
"The depth stencil is %p, expected NULL
\n
"
,
surf
);
if
(
surf
)
IDirect3DSurface8_Release
(
surf
);
...
...
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