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
6c031274
Commit
6c031274
authored
Apr 16, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix a test failure on cards that don't support mipmapped cube textures.
parent
a18cffb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
device.c
dlls/d3d9/tests/device.c
+7
-1
No files found.
dlls/d3d9/tests/device.c
View file @
6c031274
...
...
@@ -4653,7 +4653,10 @@ static void test_cube_texture_levels(IDirect3DDevice9 *device)
D3DSURFACE_DESC
desc
;
DWORD
levels
;
HRESULT
hr
;
D3DCAPS9
caps
;
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get device caps, hr %#x.
\n
"
,
hr
);
if
(
FAILED
(
IDirect3DDevice9_CreateCubeTexture
(
device
,
64
,
0
,
0
,
D3DFMT_X8R8G8B8
,
D3DPOOL_DEFAULT
,
&
texture
,
NULL
)))
{
...
...
@@ -4662,7 +4665,10 @@ static void test_cube_texture_levels(IDirect3DDevice9 *device)
}
levels
=
IDirect3DCubeTexture9_GetLevelCount
(
texture
);
ok
(
levels
==
7
,
"Got unexpected levels %u.
\n
"
,
levels
);
if
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_MIPCUBEMAP
)
ok
(
levels
==
7
,
"Got unexpected levels %u.
\n
"
,
levels
);
else
ok
(
levels
==
1
,
"Got unexpected levels %u.
\n
"
,
levels
);
hr
=
IDirect3DCubeTexture9_GetLevelDesc
(
texture
,
levels
-
1
,
&
desc
);
ok
(
hr
==
D3D_OK
,
"Got unexpected hr %#x.
\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