Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
685d1481
Commit
685d1481
authored
Mar 29, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Make the shading test even more precision tolerant.
This is needed on both windows and wine, seems to be a hardware thing.
parent
b1d8af79
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 @
685d1481
/*
* Copyright 2005, 2007 Henri Verbeet
* Copyright (C) 2007 Stefan Dsinger(for CodeWeavers)
* Copyright (C) 2007
-2008
Stefan Dsinger(for CodeWeavers)
* Copyright (C) 2008 Jason Green(for TransGaming)
*
* This library is free software; you can redistribute it and/or
...
...
@@ -6426,12 +6426,12 @@ static void shademode_test(IDirect3DDevice9 *device)
r
=
(
color0
&
0x00ff0000
)
>>
16
;
g
=
(
color0
&
0x0000ff00
)
>>
8
;
b
=
(
color0
&
0x000000ff
);
ok
(
r
>=
0x0
d
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
ok
(
r
>=
0x0
c
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
"GOURAUD shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
r
=
(
color1
&
0x00ff0000
)
>>
16
;
g
=
(
color1
&
0x0000ff00
)
>>
8
;
b
=
(
color1
&
0x000000ff
);
ok
(
r
=
=
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
ok
(
r
>=
0x0c
&&
r
<
=
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
"GOURAUD shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
color0_gouraud
=
color0
;
...
...
@@ -6444,12 +6444,12 @@ static void shademode_test(IDirect3DDevice9 *device)
r
=
(
color0
&
0x00ff0000
)
>>
16
;
g
=
(
color0
&
0x0000ff00
)
>>
8
;
b
=
(
color0
&
0x000000ff
);
ok
(
r
>=
0x0
d
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
ok
(
r
>=
0x0
c
&&
r
<=
0x0e
&&
g
==
0xca
&&
b
>=
0x27
&&
b
<=
0x28
,
"PHONG shading has color0 %08x, expected 0x000dca28
\n
"
,
color0
);
r
=
(
color1
&
0x00ff0000
)
>>
16
;
g
=
(
color1
&
0x0000ff00
)
>>
8
;
b
=
(
color1
&
0x000000ff
);
ok
(
r
=
=
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
ok
(
r
>=
0x0c
&&
r
<
=
0x0d
&&
g
>=
0x44
&&
g
<=
0x45
&&
b
>=
0xc7
&&
b
<=
0xc8
,
"PHONG shading has color1 %08x, expected 0x000d45c7
\n
"
,
color1
);
ok
(
color0
==
color0_gouraud
,
"difference between GOURAUD and PHONG shading detected: %08x %08x
\n
"
,
...
...
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