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
6bf2eb76
Commit
6bf2eb76
authored
Sep 15, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Add a slop to the fog tests for X1600 GPUs.
parent
f3644a51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
visual.c
dlls/d3d9/tests/visual.c
+14
-7
No files found.
dlls/d3d9/tests/visual.c
View file @
6bf2eb76
...
@@ -1231,9 +1231,11 @@ static void fog_test(IDirect3DDevice9 *device)
...
@@ -1231,9 +1231,11 @@ static void fog_test(IDirect3DDevice9 *device)
}
}
color
=
getPixelColor
(
device
,
160
,
360
);
color
=
getPixelColor
(
device
,
160
,
360
);
ok
(
color_match
(
color
,
0x00ff0000
,
4
),
"Unfogged quad has color %08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0xff
,
0x00
,
0x00
),
4
),
"Unfogged quad has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000ff00
,
"Fogged out quad has color %08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Fogged out quad has color %08x
\n
"
,
color
);
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
...
@@ -1270,7 +1272,8 @@ static void fog_test(IDirect3DDevice9 *device)
...
@@ -1270,7 +1272,8 @@ static void fog_test(IDirect3DDevice9 *device)
color
=
getPixelColor
(
device
,
160
,
360
);
color
=
getPixelColor
(
device
,
160
,
360
);
todo_wine
ok
(
color_match
(
color
,
0x00e51900
,
4
),
"Partially fogged quad has color %08x
\n
"
,
color
);
todo_wine
ok
(
color_match
(
color
,
0x00e51900
,
4
),
"Partially fogged quad has color %08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
160
,
120
);
color
=
getPixelColor
(
device
,
160
,
120
);
ok
(
color
==
0x0000ff00
,
"Fogged out quad has color %08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Fogged out quad has color %08x
\n
"
,
color
);
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
...
@@ -1357,13 +1360,17 @@ static void fog_test(IDirect3DDevice9 *device)
...
@@ -1357,13 +1360,17 @@ static void fog_test(IDirect3DDevice9 *device)
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_EndScene failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_EndScene failed, hr %#x.
\n
"
,
hr
);
}
}
color
=
getPixelColor
(
device
,
10
,
10
);
color
=
getPixelColor
(
device
,
10
,
10
);
ok
(
color
==
0x0000ff00
,
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
630
,
10
);
color
=
getPixelColor
(
device
,
630
,
10
);
ok
(
color
==
0x0000ff00
,
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
10
,
470
);
color
=
getPixelColor
(
device
,
10
,
470
);
ok
(
color
==
0x0000ff00
,
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
color
=
getPixelColor
(
device
,
630
,
470
);
color
=
getPixelColor
(
device
,
630
,
470
);
ok
(
color
==
0x0000ff00
,
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
ok
(
color_match
(
color
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0xff
,
0x00
),
1
),
"Rangefog with vertex fog returned color 0x%08x
\n
"
,
color
);
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_Present failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3DDevice9_Present failed, hr %#x.
\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