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
2a8dae52
Commit
2a8dae52
authored
May 01, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
May 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Fix expected values when mipmaps on cube maps are not supported.
parent
8ca7617d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
texture.c
dlls/d3dx9_36/tests/texture.c
+2
-0
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
2a8dae52
...
...
@@ -402,6 +402,7 @@ static void test_D3DXCheckCubeTextureRequirements(IDirect3DDevice9 *device)
size
=
284
;
mipmaps
=
20
;
expected
=
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP_POW2
?
10
:
9
;
expected
=
caps
.
TextureCaps
&
D3DPTEXTURECAPS_MIPCUBEMAP
?
expected
:
1
;
hr
=
D3DXCheckCubeTextureRequirements
(
device
,
&
size
,
&
mipmaps
,
0
,
NULL
,
D3DPOOL_DEFAULT
);
ok
(
hr
==
D3D_OK
,
"D3DXCheckCubeTextureRequirements returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
mipmaps
==
expected
,
"Returned mipmaps %d, expected %d
\n
"
,
mipmaps
,
expected
);
...
...
@@ -409,6 +410,7 @@ static void test_D3DXCheckCubeTextureRequirements(IDirect3DDevice9 *device)
size
=
63
;
mipmaps
=
9
;
expected
=
caps
.
TextureCaps
&
D3DPTEXTURECAPS_CUBEMAP_POW2
?
7
:
6
;
expected
=
caps
.
TextureCaps
&
D3DPTEXTURECAPS_MIPCUBEMAP
?
expected
:
1
;
hr
=
D3DXCheckCubeTextureRequirements
(
device
,
&
size
,
&
mipmaps
,
0
,
NULL
,
D3DPOOL_DEFAULT
);
ok
(
hr
==
D3D_OK
,
"D3DXCheckCubeTextureRequirements returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
mipmaps
==
expected
,
"Returned mipmaps %d, expected %d
\n
"
,
mipmaps
,
expected
);
...
...
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