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
a901f096
Commit
a901f096
authored
Aug 12, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Make the bumpmap test less picky.
parent
c425bbcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
visual.c
dlls/d3d9/tests/visual.c
+13
-9
No files found.
dlls/d3d9/tests/visual.c
View file @
a901f096
...
...
@@ -7758,24 +7758,28 @@ static void fixed_function_bumpmap_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (0x%08x)
\n
"
,
hr
);
/* on MacOS(10.5.4, radeon X1600), the white dots are have color 0x00fbfbfb rather than 0x00ffffff. This is
* kinda strange since no calculations are done on the sampled colors, only on the texture coordinates.
* But since testing the color match is not the purpose of the test don't be too picky
*/
color
=
getPixelColor
(
device
,
320
-
32
,
240
);
ok
(
color
==
0x00ffffff
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00ffffff
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
+
32
,
240
);
ok
(
color
==
0x00ffffff
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00ffffff
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
,
240
-
32
);
ok
(
color
==
0x00ffffff
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00ffffff
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
,
240
+
32
);
ok
(
color
==
0x00ffffff
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00ffffff
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00ffffff.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
,
240
);
ok
(
color
==
0x00000000
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00000000
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
+
32
,
240
+
32
);
ok
(
color
==
0x00000000
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00000000
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
-
32
,
240
+
32
);
ok
(
color
==
0x00000000
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00000000
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
+
32
,
240
-
32
);
ok
(
color
==
0x00000000
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00000000
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
color
=
getPixelColor
(
device
,
320
-
32
,
240
-
32
);
ok
(
color
==
0x00000000
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
ok
(
color
_match
(
color
,
0x00000000
,
4
)
,
"bumpmap failed: Got color 0x%08x, expected 0x00000000.
\n
"
,
color
);
hr
=
IDirect3DDevice9_SetVertexDeclaration
(
device
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"SetVertexDeclaration failed (%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