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
d2244057
Commit
d2244057
authored
Mar 17, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
Mar 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Fix compilation on systems that don't support nameless unions.
parent
6b8884f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
d3drm.c
dlls/d3drm/tests/d3drm.c
+18
-18
No files found.
dlls/d3drm/tests/d3drm.c
View file @
d2244057
...
...
@@ -243,24 +243,24 @@ static void test_MeshBuilder(void)
ok
(
val1
==
3
,
"Wrong number of vertices %d (must be 3)
\n
"
,
val1
);
ok
(
val2
==
3
,
"Wrong number of normals %d (must be 3)
\n
"
,
val2
);
ok
(
val3
==
8
,
"Wrong number of face data bytes %d (must be 8)
\n
"
,
val3
);
ok
(
v
[
0
].
x
==
0
.
1
f
,
"Wrong component v[0].x = %f (expected 0.1)
\n
"
,
v
[
0
]
.
x
);
ok
(
v
[
0
].
y
==
0
.
2
f
,
"Wrong component v[0].y = %f (expected 0.2)
\n
"
,
v
[
0
]
.
y
);
ok
(
v
[
0
].
z
==
0
.
3
f
,
"Wrong component v[0].z = %f (expected 0.3)
\n
"
,
v
[
0
]
.
z
);
ok
(
v
[
1
].
x
==
0
.
4
f
,
"Wrong component v[1].x = %f (expected 0.4)
\n
"
,
v
[
1
]
.
x
);
ok
(
v
[
1
].
y
==
0
.
5
f
,
"Wrong component v[1].y = %f (expected 0.5)
\n
"
,
v
[
1
]
.
y
);
ok
(
v
[
1
].
z
==
0
.
6
f
,
"Wrong component v[1].z = %f (expected 0.6)
\n
"
,
v
[
1
]
.
z
);
ok
(
v
[
2
].
x
==
0
.
7
f
,
"Wrong component v[2].x = %f (expected 0.7)
\n
"
,
v
[
2
]
.
x
);
ok
(
v
[
2
].
y
==
0
.
8
f
,
"Wrong component v[2].y = %f (expected 0.8)
\n
"
,
v
[
2
]
.
y
);
ok
(
v
[
2
].
z
==
0
.
9
f
,
"Wrong component v[2].z = %f (expected 0.9)
\n
"
,
v
[
2
]
.
z
);
ok
(
n
[
0
].
x
==
1
.
1
f
,
"Wrong component n[0].x = %f (expected 1.1)
\n
"
,
n
[
0
]
.
x
);
ok
(
n
[
0
].
y
==
1
.
2
f
,
"Wrong component n[0].y = %f (expected 1.2)
\n
"
,
n
[
0
]
.
y
);
ok
(
n
[
0
].
z
==
1
.
3
f
,
"Wrong component n[0].z = %f (expected 1.3)
\n
"
,
n
[
0
]
.
z
);
ok
(
n
[
1
].
x
==
1
.
4
f
,
"Wrong component n[1].x = %f (expected 1.4)
\n
"
,
n
[
1
]
.
x
);
ok
(
n
[
1
].
y
==
1
.
5
f
,
"Wrong component n[1].y = %f (expected 1.5)
\n
"
,
n
[
1
]
.
y
);
ok
(
n
[
1
].
z
==
1
.
6
f
,
"Wrong component n[1].z = %f (expected 1.6)
\n
"
,
n
[
1
]
.
z
);
ok
(
n
[
2
].
x
==
1
.
7
f
,
"Wrong component n[2].x = %f (expected 1.7)
\n
"
,
n
[
2
]
.
x
);
ok
(
n
[
2
].
y
==
1
.
8
f
,
"Wrong component n[2].y = %f (expected 1.8)
\n
"
,
n
[
2
]
.
y
);
ok
(
n
[
2
].
z
==
1
.
9
f
,
"Wrong component n[2].z = %f (expected 1.9)
\n
"
,
n
[
2
]
.
z
);
ok
(
U1
(
v
[
0
]).
x
==
0
.
1
f
,
"Wrong component v[0].x = %f (expected 0.1)
\n
"
,
U1
(
v
[
0
])
.
x
);
ok
(
U2
(
v
[
0
]).
y
==
0
.
2
f
,
"Wrong component v[0].y = %f (expected 0.2)
\n
"
,
U2
(
v
[
0
])
.
y
);
ok
(
U3
(
v
[
0
]).
z
==
0
.
3
f
,
"Wrong component v[0].z = %f (expected 0.3)
\n
"
,
U3
(
v
[
0
])
.
z
);
ok
(
U1
(
v
[
1
]).
x
==
0
.
4
f
,
"Wrong component v[1].x = %f (expected 0.4)
\n
"
,
U1
(
v
[
1
])
.
x
);
ok
(
U2
(
v
[
1
]).
y
==
0
.
5
f
,
"Wrong component v[1].y = %f (expected 0.5)
\n
"
,
U2
(
v
[
1
])
.
y
);
ok
(
U3
(
v
[
1
]).
z
==
0
.
6
f
,
"Wrong component v[1].z = %f (expected 0.6)
\n
"
,
U3
(
v
[
1
])
.
z
);
ok
(
U1
(
v
[
2
]).
x
==
0
.
7
f
,
"Wrong component v[2].x = %f (expected 0.7)
\n
"
,
U1
(
v
[
2
])
.
x
);
ok
(
U2
(
v
[
2
]).
y
==
0
.
8
f
,
"Wrong component v[2].y = %f (expected 0.8)
\n
"
,
U2
(
v
[
2
])
.
y
);
ok
(
U3
(
v
[
2
]).
z
==
0
.
9
f
,
"Wrong component v[2].z = %f (expected 0.9)
\n
"
,
U3
(
v
[
2
])
.
z
);
ok
(
U1
(
n
[
0
]).
x
==
1
.
1
f
,
"Wrong component n[0].x = %f (expected 1.1)
\n
"
,
U1
(
n
[
0
])
.
x
);
ok
(
U2
(
n
[
0
]).
y
==
1
.
2
f
,
"Wrong component n[0].y = %f (expected 1.2)
\n
"
,
U2
(
n
[
0
])
.
y
);
ok
(
U3
(
n
[
0
]).
z
==
1
.
3
f
,
"Wrong component n[0].z = %f (expected 1.3)
\n
"
,
U3
(
n
[
0
])
.
z
);
ok
(
U1
(
n
[
1
]).
x
==
1
.
4
f
,
"Wrong component n[1].x = %f (expected 1.4)
\n
"
,
U1
(
n
[
1
])
.
x
);
ok
(
U2
(
n
[
1
]).
y
==
1
.
5
f
,
"Wrong component n[1].y = %f (expected 1.5)
\n
"
,
U2
(
n
[
1
])
.
y
);
ok
(
U3
(
n
[
1
]).
z
==
1
.
6
f
,
"Wrong component n[1].z = %f (expected 1.6)
\n
"
,
U3
(
n
[
1
])
.
z
);
ok
(
U1
(
n
[
2
]).
x
==
1
.
7
f
,
"Wrong component n[2].x = %f (expected 1.7)
\n
"
,
U1
(
n
[
2
])
.
x
);
ok
(
U2
(
n
[
2
]).
y
==
1
.
8
f
,
"Wrong component n[2].y = %f (expected 1.8)
\n
"
,
U2
(
n
[
2
])
.
y
);
ok
(
U3
(
n
[
2
]).
z
==
1
.
9
f
,
"Wrong component n[2].z = %f (expected 1.9)
\n
"
,
U3
(
n
[
2
])
.
z
);
ok
(
f
[
0
]
==
3
,
"Wrong component f[0] = %d (expected 3)
\n
"
,
f
[
0
]);
ok
(
f
[
1
]
==
0
,
"Wrong component f[1] = %d (expected 0)
\n
"
,
f
[
1
]);
ok
(
f
[
2
]
==
0
,
"Wrong component f[2] = %d (expected 0)
\n
"
,
f
[
2
]);
...
...
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