Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo Ferrillo
wine
Commits
85e729cf
Commit
85e729cf
authored
13 years ago
by
Matteo Bruni
Committed by
Alexandre Julliard
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
d3d9/tests: Rename a variable.
parent
b6af8a7e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/d3d9/tests/visual.c
+10
-10
10 additions, 10 deletions
dlls/d3d9/tests/visual.c
with
10 additions
and
10 deletions
dlls/d3d9/tests/visual.c
+
10
−
10
View file @
85e729cf
...
...
@@ -877,14 +877,14 @@ static void fog_test(IDirect3DDevice9 *device)
int i;
/* 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.1f, 0xFFFF0000, 0xFF000000 },
{-1, 0, 0.1f, 0xFFFF0000, 0xFF000000 },
{ 0, 0, 0.1f, 0xFFFF0000, 0xFF000000 },
{ 0, -1, 0.1f, 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.0f, 0xFFFF0000, 0xFF000000 },
{-1, 1, 1.0f, 0xFFFF0000, 0xFF000000 },
{ 0, 1, 1.0f, 0xFFFF0000, 0xFF000000 },
...
...
@@ -960,8 +960,8 @@ static void fog_test(IDirect3DDevice9 *device)
ok( hr == D3D_OK, "SetFVF returned %08x\n", hr);
/* Untransformed, vertex fog = NONE, table fog = NONE: Read the fog weighting from the specular color */
hr = IDirect3DDevice9_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 */
...
...
@@ -971,8 +971,8 @@ static void fog_test(IDirect3DDevice9 *device)
* Use the Z value as input into the equation
*/
hr = IDirect3DDevice9_DrawIndexedPrimitiveUP(device, D3DPT_TRIANGLELIST, 0 /* MinIndex */, 4 /* NumVerts */,
2 /*PrimCount */, Indices, D3DFMT_INDEX16, un
s
transformed_2,
sizeof(un
s
transformed_
1
[0]));
2 /*PrimCount */, Indices, D3DFMT_INDEX16, untransformed_2,
sizeof(untransformed_
2
[0]));
ok(hr == D3D_OK, "DrawIndexedPrimitiveUP returned %08x\n", hr);
/* transformed verts */
...
...
@@ -1051,12 +1051,12 @@ static void fog_test(IDirect3DDevice9 *device)
* color and has fixed fogstart and fogend.
*/
hr = IDirect3DDevice9_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);
hr = IDirect3DDevice9_DrawIndexedPrimitiveUP(device, D3DPT_TRIANGLELIST, 0 /* MinIndex */, 4 /* NumVerts */,
2 /*PrimCount */, Indices, D3DFMT_INDEX16, un
s
transformed_2,
sizeof(un
s
transformed_
1
[0]));
2 /*PrimCount */, Indices, D3DFMT_INDEX16, untransformed_2,
sizeof(untransformed_
2
[0]));
ok(hr == D3D_OK, "DrawIndexedPrimitiveUP returned %08x\n", hr);
hr = IDirect3DDevice9_SetFVF(device, D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_SPECULAR);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment