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
d5e9c3cf
Commit
d5e9c3cf
authored
Mar 12, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix some test failures on W2K/VMware.
parent
0700f281
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
visual.c
dlls/ddraw/tests/visual.c
+10
-0
No files found.
dlls/ddraw/tests/visual.c
View file @
d5e9c3cf
...
...
@@ -2608,6 +2608,14 @@ static void cubemap_test(IDirect3DDevice7 *device)
if
(
SUCCEEDED
(
hr
))
{
hr
=
IDirect3DDevice7_DrawPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
D3DFVF_XYZ
|
D3DFVF_TEXCOORDSIZE3
(
0
)
|
D3DFVF_TEX1
,
quad
+
0
*
6
,
4
,
0
);
if
(
hr
==
E_NOTIMPL
)
{
/* VMware */
win_skip
(
"IDirect3DDevice7_DrawPrimitive is not completely implemented, colors won't be tested
\n
"
);
hr
=
IDirect3DDevice7_EndScene
(
device
);
ok
(
hr
==
DD_OK
,
"IDirect3DDevice7_EndScene returned %08x
\n
"
,
hr
);
goto
out
;
}
ok
(
hr
==
DD_OK
,
"IDirect3DDevice7_DrawPrimitive returned %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_DrawPrimitive
(
device
,
D3DPT_TRIANGLESTRIP
,
D3DFVF_XYZ
|
D3DFVF_TEXCOORDSIZE3
(
0
)
|
D3DFVF_TEX1
,
quad
+
4
*
6
,
4
,
0
);
ok
(
hr
==
DD_OK
,
"IDirect3DDevice7_DrawPrimitive returned %08x
\n
"
,
hr
);
...
...
@@ -2630,6 +2638,8 @@ static void cubemap_test(IDirect3DDevice7 *device)
ok
(
color
==
0x00ff00ff
,
"DDSCAPS2_CUBEMAP_POSITIVEY has color 0x%08x, expected 0x00ff00ff
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
/* upper right quad - positivez */
ok
(
color
==
0x000000ff
,
"DDSCAPS2_CUBEMAP_POSITIVEZ has color 0x%08x, expected 0x000000ff
\n
"
,
color
);
out:
hr
=
IDirect3DDevice7_SetTexture
(
device
,
0
,
NULL
);
ok
(
hr
==
DD_OK
,
"IDirect3DDevice7_SetTexture returned %08x
\n
"
,
hr
);
IDirectDrawSurface7_Release
(
cubemap
);
...
...
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