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
466c244d
Commit
466c244d
authored
Oct 21, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Oct 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Enum all materials even if only the first one is handled.
parent
5e1d854e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
meshbuilder.c
dlls/d3drm/meshbuilder.c
+8
-3
No files found.
dlls/d3drm/meshbuilder.c
View file @
466c244d
...
...
@@ -1244,10 +1244,7 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
WARN
(
"Returned size %u does not match expected one %u
\n
"
,
size
,
data_size
);
if
(
nb_materials
>
1
)
{
FIXME
(
"Only one material per mesh supported, first one applies to all faces
\n
"
);
nb_materials
=
1
;
}
while
(
SUCCEEDED
(
hr
=
IDirectXFileData_GetNextObject
(
pData2
,
&
child
))
&&
(
i
<
nb_materials
))
{
...
...
@@ -1256,6 +1253,14 @@ HRESULT load_mesh_data(IDirect3DRMMeshBuilder3* iface, LPDIRECTXFILEDATA pData)
LPDIRECT3DRMMATERIAL2
material
;
LPDIRECTXFILEOBJECT
material_child
;
if
(
i
>=
1
)
{
/* FIXME: Only handle first material but enum all of them */
IDirectXFileObject_Release
(
child
);
i
++
;
continue
;
}
hr
=
IDirectXFileObject_QueryInterface
(
child
,
&
IID_IDirectXFileData
,
(
void
**
)
&
data
);
if
(
FAILED
(
hr
))
{
...
...
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