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
8e522b7f
Commit
8e522b7f
authored
Jul 25, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Fix some error messages.
parent
94750652
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
visual.c
dlls/d3d8/tests/visual.c
+3
-3
No files found.
dlls/d3d8/tests/visual.c
View file @
8e522b7f
...
...
@@ -397,13 +397,13 @@ static void fog_test(IDirect3DDevice8 *device)
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGENABLE
,
TRUE
);
ok
(
hr
==
D3D_OK
,
"Turning on fog calculations returned %#08x
\n
"
,
hr
);
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGCOLOR
,
0xFF00FF00
/* A nice green */
);
ok
(
hr
==
D3D_OK
,
"
Turning on fog calculations
returned %#08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"
Setting fog color
returned %#08x
\n
"
,
hr
);
/* First test: Both table fog and vertex fog off */
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGTABLEMODE
,
D3DFOG_NONE
);
ok
(
hr
==
D3D_OK
,
"Turning off table fog returned %#08x
\n
"
,
hr
);
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGVERTEXMODE
,
D3DFOG_NONE
);
ok
(
hr
==
D3D_OK
,
"Turning off
table
fog returned %#08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Turning off
vertex
fog returned %#08x
\n
"
,
hr
);
/* Start = 0, end = 1. Should be default, but set them */
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGSTART
,
*
((
DWORD
*
)
&
start
));
...
...
@@ -423,7 +423,7 @@ static void fog_test(IDirect3DDevice8 *device)
/* That makes it use the Z value */
hr
=
IDirect3DDevice8_SetRenderState
(
device
,
D3DRS_FOGVERTEXMODE
,
D3DFOG_LINEAR
);
ok
(
hr
==
D3D_OK
,
"
Turning off table fog
returned %#08x
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"
Setting fog vertex mode to D3DFOG_LINEAR
returned %#08x
\n
"
,
hr
);
/* Untransformed, vertex fog != none (or table fog != none):
* Use the Z value as input into the equation
*/
...
...
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