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
740b56e8
Commit
740b56e8
authored
Mar 21, 2008
by
Jason Green
Committed by
Alexandre Julliard
Mar 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Allow for driver precision differences in some visual tests.
parent
1a933d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
visual.c
dlls/d3d9/tests/visual.c
+5
-5
No files found.
dlls/d3d9/tests/visual.c
View file @
740b56e8
...
...
@@ -765,13 +765,13 @@ static void fog_test(IDirect3DDevice9 *device)
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x00FF0000
,
"Untransformed vertex with no table or vertex fog has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000FF00
,
"Untransformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Untransformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
ok
(
color
==
0x00FFFF00
,
"Transformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
if
(
caps
.
RasterCaps
&
D3DPRASTERCAPS_FOGTABLE
)
{
color
=
getPixelColor
(
device
,
480
,
360
);
ok
(
color
==
0x0000FF00
,
"Transformed vertex with linear table fog has color %08x
\n
"
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Transformed vertex with linear table fog has color %08x
\n
"
,
color
);
}
else
{
...
...
@@ -835,9 +835,9 @@ static void fog_test(IDirect3DDevice9 *device)
}
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x0000FF00
,
"Untransformed vertex with vertex fog and z = 0.1 has color %08x
\n
"
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Untransformed vertex with vertex fog and z = 0.1 has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000FF00
,
"Untransformed vertex with vertex fog and z = 1.0 has color %08x
\n
"
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Untransformed vertex with vertex fog and z = 1.0 has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
480
,
120
);
ok
(
color
==
0x00FFFF00
,
"Transformed vertex with linear vertex fog has color %08x
\n
"
,
color
);
...
...
@@ -882,7 +882,7 @@ static void fog_test(IDirect3DDevice9 *device)
}
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color
==
0x0000FF00
,
"Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00
\n
"
,
mode
,
color
);
ok
(
color
==
0x0000FF00
||
color
==
0x0000FE00
,
"Reversed %s fog: z=0.1 has color 0x%08x, expected 0x0000ff00
\n
"
,
mode
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
r
=
(
color
&
0x00ff0000
)
>>
16
;
...
...
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