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
94750652
Commit
94750652
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: Rename a variable.
parent
414bd437
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
visual.c
dlls/d3d8/tests/visual.c
+6
-6
No files found.
dlls/d3d8/tests/visual.c
View file @
94750652
...
...
@@ -358,14 +358,14 @@ static void fog_test(IDirect3DDevice8 *device)
float
start
=
0
.
0
,
end
=
1
.
0
;
/* Gets full z based fog with linear fog, no fog with specular color */
struct
sVertex
un
s
transformed_1
[]
=
{
struct
sVertex
untransformed_1
[]
=
{
{
-
1
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
-
1
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
0
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
-
1
,
0
.
1
f
,
0xFFFF0000
,
0xFF000000
},
};
/* Ok, I am too lazy to deal with transform matrices */
struct
sVertex
un
s
transformed_2
[]
=
{
struct
sVertex
untransformed_2
[]
=
{
{
-
1
,
0
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{
-
1
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
{
0
,
1
,
1
.
0
f
,
0xFFFF0000
,
0xFF000000
},
...
...
@@ -417,8 +417,8 @@ static void fog_test(IDirect3DDevice8 *device)
ok
(
hr
==
D3D_OK
,
"SetVertexShader returned %#08x
\n
"
,
hr
);
/* Untransformed, vertex fog = NONE, table fog = NONE: Read the fog weighting from the specular color */
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
/* MinIndex */
,
4
/* NumVerts */
,
2
/*PrimCount */
,
Indices
,
D3DFMT_INDEX16
,
un
s
transformed_1
,
sizeof
(
un
s
transformed_1
[
0
]));
2
/*PrimCount */
,
Indices
,
D3DFMT_INDEX16
,
untransformed_1
,
sizeof
(
untransformed_1
[
0
]));
ok
(
hr
==
D3D_OK
,
"DrawIndexedPrimitiveUP returned %#08x
\n
"
,
hr
);
/* That makes it use the Z value */
...
...
@@ -428,8 +428,8 @@ static void fog_test(IDirect3DDevice8 *device)
* Use the Z value as input into the equation
*/
hr
=
IDirect3DDevice8_DrawIndexedPrimitiveUP
(
device
,
D3DPT_TRIANGLELIST
,
0
/* MinIndex */
,
4
/* NumVerts */
,
2
/*PrimCount */
,
Indices
,
D3DFMT_INDEX16
,
un
s
transformed_2
,
sizeof
(
un
stransformed_1
[
0
]));
2
/*PrimCount */
,
Indices
,
D3DFMT_INDEX16
,
untransformed_2
,
sizeof
(
un
transformed_2
[
0
]));
ok
(
hr
==
D3D_OK
,
"DrawIndexedPrimitiveUP returned %#08x
\n
"
,
hr
);
/* transformed verts */
...
...
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