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
d0b8fd0a
Commit
d0b8fd0a
authored
Mar 06, 2008
by
Jason Green
Committed by
Alexandre Julliard
Mar 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Fix a few ok() comparisons to not always return true in the visual tests.
parent
03da2166
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
visual.c
dlls/d3d9/tests/visual.c
+3
-3
No files found.
dlls/d3d9/tests/visual.c
View file @
d0b8fd0a
...
...
@@ -1077,11 +1077,11 @@ static void offscreen_test(IDirect3DDevice9 *device)
ok
(
hr
==
D3D_OK
,
"Clear failed, hr = %s
\n
"
,
DXGetErrorString9
(
hr
));
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
128
,
128
,
1
,
D3DUSAGE_RENDERTARGET
,
D3DFMT_X8R8G8B8
,
D3DPOOL_DEFAULT
,
&
offscreenTexture
,
NULL
);
ok
(
hr
==
D3D_OK
||
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %s
\n
"
,
DXGetErrorString9
(
hr
));
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %s
\n
"
,
DXGetErrorString9
(
hr
));
if
(
!
offscreenTexture
)
{
trace
(
"Failed to create an X8R8G8B8 offscreen texture, trying R5G6B5
\n
"
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
128
,
128
,
1
,
D3DUSAGE_RENDERTARGET
,
D3DFMT_R5G6B5
,
D3DPOOL_DEFAULT
,
&
offscreenTexture
,
NULL
);
ok
(
hr
==
D3D_OK
||
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %s
\n
"
,
DXGetErrorString9
(
hr
));
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %s
\n
"
,
DXGetErrorString9
(
hr
));
if
(
!
offscreenTexture
)
{
skip
(
"Cannot create an offscreen render target
\n
"
);
goto
out
;
...
...
@@ -5547,7 +5547,7 @@ static void alpha_test(IDirect3DDevice9 *device)
ok
(
hr
==
D3D_OK
,
"Clear failed, hr = %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
128
,
128
,
1
,
D3DUSAGE_RENDERTARGET
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
offscreenTexture
,
NULL
);
ok
(
hr
==
D3D_OK
||
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %#08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
||
hr
==
D3DERR_INVALIDCALL
,
"Creating the offscreen render target failed, hr = %#08x
\n
"
,
hr
);
hr
=
IDirect3DDevice9_GetBackBuffer
(
device
,
0
,
0
,
D3DBACKBUFFER_TYPE_MONO
,
&
backbuffer
);
ok
(
hr
==
D3D_OK
,
"Can't get back buffer, hr = %s
\n
"
,
DXGetErrorString9
(
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