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
23faba7e
Commit
23faba7e
authored
Mar 04, 2011
by
David Adam
Committed by
Alexandre Julliard
Mar 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Add a test for D3DXCreateBox.
parent
f435963b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
mesh.c
dlls/d3dx9_36/tests/mesh.c
+24
-0
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
23faba7e
...
...
@@ -1357,6 +1357,15 @@ static void D3DXCreateBoxTest(void)
D3DPRESENT_PARAMETERS
d3dpp
;
ID3DXMesh
*
box
;
ID3DXBuffer
*
ppBuffer
;
DWORD
*
buffer
;
static
const
DWORD
adjacency
[
36
]
=
{
6
,
9
,
1
,
2
,
10
,
0
,
1
,
9
,
3
,
4
,
10
,
2
,
3
,
8
,
5
,
7
,
11
,
4
,
0
,
11
,
7
,
5
,
8
,
6
,
7
,
4
,
9
,
2
,
0
,
8
,
1
,
3
,
11
,
5
,
6
,
10
};
unsigned
int
i
;
wc
.
lpfnWndProc
=
DefWindowProcA
;
wc
.
lpszClassName
=
"d3dx9_test_wc"
;
...
...
@@ -1414,6 +1423,21 @@ static void D3DXCreateBoxTest(void)
hr
=
D3DXCreateBox
(
device
,
22
.
0
f
,
20
.
0
f
,
-
4
.
9
f
,
&
box
,
&
ppBuffer
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Expected D3DERR_INVALIDCALL, received %#x"
,
hr
);
hr
=
D3DXCreateBox
(
device
,
10
.
9
f
,
20
.
0
f
,
4
.
9
f
,
&
box
,
&
ppBuffer
);
todo_wine
ok
(
hr
==
D3D_OK
,
"Expected D3D_OK, received %#x"
,
hr
);
if
(
FAILED
(
hr
))
{
skip
(
"D3DXCreateBox failed
\n
"
);
goto
end
;
}
buffer
=
ID3DXBuffer_GetBufferPointer
(
ppBuffer
);
for
(
i
=
0
;
i
<
36
;
i
++
)
todo_wine
ok
(
adjacency
[
i
]
==
buffer
[
i
],
"expected adjacency %d: %#x, received %#x
\n
"
,
i
,
adjacency
[
i
],
buffer
[
i
]);
box
->
lpVtbl
->
Release
(
box
);
end:
IDirect3DDevice9_Release
(
device
);
IDirect3D9_Release
(
d3d
);
...
...
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