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
23db9d8b
Commit
23db9d8b
authored
Jun 04, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Jun 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Pass mesh builder color to newly created mesh.
parent
b7a74b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
meshbuilder.c
dlls/d3drm/meshbuilder.c
+2
-0
d3drm.c
dlls/d3drm/tests/d3drm.c
+1
-1
No files found.
dlls/d3drm/meshbuilder.c
View file @
23db9d8b
...
...
@@ -2022,6 +2022,8 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_CreateMesh(IDirect3DRMMeshBuil
}
}
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRMMesh_SetGroupColor
(
*
mesh
,
0
,
This
->
color
);
if
(
SUCCEEDED
(
hr
))
hr
=
IDirect3DRMMesh_SetGroupMaterial
(
*
mesh
,
0
,
(
LPDIRECT3DRMMATERIAL
)
This
->
material
);
if
(
FAILED
(
hr
))
IDirect3DRMMesh_Release
(
*
mesh
);
...
...
dlls/d3drm/tests/d3drm.c
View file @
23db9d8b
...
...
@@ -369,7 +369,7 @@ static void test_MeshBuilder(void)
todo_wine
ok
(
nb_face_vertices
==
3
,
"Wrong number of vertices per face %u (must be 3)
\n
"
,
nb_face_vertices
);
todo_wine
ok
(
data_size
==
3
,
"Wrong number of face data bytes %u (must be 3)
\n
"
,
data_size
);
color
=
IDirect3DRMMesh_GetGroupColor
(
mesh
,
0
);
todo_wine
ok
(
color
==
0xff00ff00
,
"Wrong color returned %#x instead of %#x
\n
"
,
color
,
0xff00ff00
);
ok
(
color
==
0xff00ff00
,
"Wrong color returned %#x instead of %#x
\n
"
,
color
,
0xff00ff00
);
hr
=
IDirect3DRMMesh_GetGroupTexture
(
mesh
,
0
,
&
texture
);
ok
(
hr
==
D3DRM_OK
,
"GetCroupTexture failed returning hr = %x
\n
"
,
hr
);
ok
(
texture
==
NULL
,
"No texture should be present
\n
"
);
...
...
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