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
d6a919af
Commit
d6a919af
authored
Mar 13, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Skip a test if DXTn texture formats are not supported.
parent
d96d0af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
texture.c
dlls/d3dx9_36/tests/texture.c
+16
-9
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
d6a919af
...
...
@@ -341,15 +341,22 @@ static void test_D3DXCheckTextureRequirements(IDirect3DDevice9 *device)
ok
(
format
==
expected
,
"Returned format %u, expected %u
\n
"
,
format
,
expected
);
/* Block-based texture formats and size < block size. */
format
=
D3DFMT_DXT1
;
width
=
2
;
height
=
2
;
mipmaps
=
1
;
hr
=
D3DXCheckTextureRequirements
(
device
,
&
width
,
&
height
,
&
mipmaps
,
0
,
&
format
,
D3DPOOL_DEFAULT
);
ok
(
hr
==
D3D_OK
,
"D3DXCheckTextureRequirements returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
width
==
4
,
"Returned width %d, expected %d
\n
"
,
width
,
4
);
ok
(
height
==
4
,
"Returned height %d, expected %d
\n
"
,
height
,
4
);
ok
(
mipmaps
==
1
,
"Returned mipmaps %d, expected %d
\n
"
,
mipmaps
,
1
);
ok
(
format
==
D3DFMT_DXT1
,
"Returned format %u, expected %u
\n
"
,
format
,
D3DFMT_DXT1
);
if
(
has_2d_dxt5
)
{
format
=
D3DFMT_DXT5
;
width
=
2
;
height
=
2
;
mipmaps
=
1
;
hr
=
D3DXCheckTextureRequirements
(
device
,
&
width
,
&
height
,
&
mipmaps
,
0
,
&
format
,
D3DPOOL_DEFAULT
);
ok
(
hr
==
D3D_OK
,
"D3DXCheckTextureRequirements returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
width
==
4
,
"Returned width %d, expected %d
\n
"
,
width
,
4
);
ok
(
height
==
4
,
"Returned height %d, expected %d
\n
"
,
height
,
4
);
ok
(
mipmaps
==
1
,
"Returned mipmaps %d, expected %d
\n
"
,
mipmaps
,
1
);
ok
(
format
==
D3DFMT_DXT5
,
"Returned format %u, expected %u
\n
"
,
format
,
D3DFMT_DXT5
);
}
else
{
skip
(
"D3DFMT_DXT5 textures are not supported, skipping a test.
\n
"
);
}
IDirect3D9_Release
(
d3d
);
}
...
...
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