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
be8dd2e8
Commit
be8dd2e8
authored
Nov 09, 2011
by
Michael Mc Donnell
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Show D3DXMESH_VB_SHARE with new declaration should fail.
parent
656e8a87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
mesh.c
dlls/d3dx9_36/tests/mesh.c
+27
-0
No files found.
dlls/d3dx9_36/tests/mesh.c
View file @
be8dd2e8
...
...
@@ -9896,6 +9896,33 @@ static void test_clone_mesh(void)
mesh_clone
=
NULL
;
}
/* The following test shows that it is not possible to share a vertex buffer
* with D3DXMESH_VB_SHARE and change the vertex declaration at the same
* time. It reuses the test data from test 2.
*/
hr
=
init_test_mesh
(
tc
[
2
].
num_faces
,
tc
[
2
].
num_vertices
,
tc
[
2
].
create_options
,
tc
[
2
].
declaration
,
test_context
->
device
,
&
mesh
,
tc
[
2
].
vertices
,
tc
[
2
].
vertex_size
,
tc
[
2
].
indices
,
tc
[
2
].
attributes
);
if
(
FAILED
(
hr
))
{
skip
(
"Couldn't initialize test mesh for D3DXMESH_VB_SHARE case."
" Got %x expected D3D_OK
\n
"
,
hr
);
goto
cleanup
;
}
hr
=
mesh
->
lpVtbl
->
CloneMesh
(
mesh
,
tc
[
2
].
create_options
|
D3DXMESH_VB_SHARE
,
tc
[
2
].
new_declaration
,
test_context
->
device
,
&
mesh_clone
);
todo_wine
ok
(
hr
==
D3DERR_INVALIDCALL
,
"CloneMesh D3DXMESH_VB_SHARE with new"
" declaration. Got %x, expected D3DERR_INVALIDCALL
\n
"
,
hr
);
mesh
->
lpVtbl
->
Release
(
mesh
);
mesh
=
NULL
;
mesh_clone
=
NULL
;
cleanup:
if
(
vertices
)
mesh
->
lpVtbl
->
UnlockVertexBuffer
(
mesh
);
if
(
mesh
)
mesh
->
lpVtbl
->
Release
(
mesh
);
...
...
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