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
517f6aa5
Commit
517f6aa5
authored
Feb 09, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Make sure return values are used (LLVM/Clang).
parent
b8e1a19a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
texture.c
dlls/d3dx9_36/tests/texture.c
+8
-0
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
517f6aa5
...
@@ -421,6 +421,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
...
@@ -421,6 +421,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
if
(
texture
)
if
(
texture
)
{
{
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"GetLevelDesc returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
ok
(
desc
.
Width
==
256
,
"Returned width %d, expected %d
\n
"
,
desc
.
Width
,
256
);
ok
(
desc
.
Width
==
256
,
"Returned width %d, expected %d
\n
"
,
desc
.
Width
,
256
);
ok
(
desc
.
Height
==
256
,
"Returned height %d, expected %d
\n
"
,
desc
.
Height
,
256
);
ok
(
desc
.
Height
==
256
,
"Returned height %d, expected %d
\n
"
,
desc
.
Height
,
256
);
...
@@ -435,6 +437,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
...
@@ -435,6 +437,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
if
(
texture
)
if
(
texture
)
{
{
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"GetLevelDesc returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
ok
(
desc
.
Width
==
1
,
"Returned width %d, expected %d
\n
"
,
desc
.
Width
,
1
);
ok
(
desc
.
Width
==
1
,
"Returned width %d, expected %d
\n
"
,
desc
.
Width
,
1
);
ok
(
desc
.
Height
==
1
,
"Returned height %d, expected %d
\n
"
,
desc
.
Height
,
1
);
ok
(
desc
.
Height
==
1
,
"Returned height %d, expected %d
\n
"
,
desc
.
Height
,
1
);
...
@@ -456,6 +460,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
...
@@ -456,6 +460,8 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
if
(
texture
)
if
(
texture
)
{
{
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"GetLevelDesc returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
/* Conditional NPOT may create a texture with different dimensions, so allow those
/* Conditional NPOT may create a texture with different dimensions, so allow those
situations instead of returning a fail */
situations instead of returning a fail */
...
@@ -542,6 +548,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
...
@@ -542,6 +548,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
if
(
texture
)
if
(
texture
)
{
{
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"GetLevelDesc returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
IDirect3DTexture9_Release
(
texture
);
IDirect3DTexture9_Release
(
texture
);
...
@@ -554,6 +561,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
...
@@ -554,6 +561,7 @@ static void test_D3DXCreateTexture(IDirect3DDevice9 *device)
if
(
texture
)
if
(
texture
)
{
{
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
hr
=
IDirect3DTexture9_GetLevelDesc
(
texture
,
0
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"GetLevelDesc returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
ok
(
desc
.
Format
==
D3DFMT_A8R8G8B8
,
"Returned format %u, expected %u
\n
"
,
desc
.
Format
,
D3DFMT_A8R8G8B8
);
IDirect3DTexture9_Release
(
texture
);
IDirect3DTexture9_Release
(
texture
);
...
...
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