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
175a6d8d
Commit
175a6d8d
authored
Jan 09, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Jan 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Fix NP2 check.
parent
53849b7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
visual.c
dlls/d3d9/tests/visual.c
+12
-6
No files found.
dlls/d3d9/tests/visual.c
View file @
175a6d8d
...
...
@@ -7884,16 +7884,22 @@ static void conditional_np2_repeat_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_GetDeviceCaps failed hr=%08x
\n
"
,
hr
);
if
(
!
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_POW2
))
{
if
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_NONPOW2CONDITIONAL
)
{
/* NP2 conditional requires the POW2 flag. Check that while we're at it */
ok
(
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_NONPOW2CONDITIONAL
)
==
0
,
"Card has conditional NP2 support without power of two restriction set
\n
"
);
skip
(
"Card has unconditional pow2 support, skipping conditional NP2 tests
\n
"
);
return
;
}
else
if
(
!
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_POW2
))
{
ok
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_POW2
,
"Card has conditional NP2 support without power of two restriction set
\n
"
);
}
else
if
(
caps
.
TextureCaps
&
D3DPTEXTURECAPS_POW2
)
{
skip
(
"No conditional NP2 support, skipping conditional NP2 tests
\n
"
);
return
;
}
else
{
skip
(
"Card has unconditional NP2 support, skipping conditional NP2 tests
\n
"
);
return
;
}
hr
=
IDirect3DDevice9_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xff000000
,
0
.
0
,
0
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_Clear failed, hr=%08x
\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