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
cfe08e71
Commit
cfe08e71
authored
Jun 06, 2013
by
Christian Costa
Committed by
Alexandre Julliard
Jun 07, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9_36: Simplify code + fix typo.
parent
d63a160c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
mesh.c
dlls/d3dx9_36/mesh.c
+1
-10
No files found.
dlls/d3dx9_36/mesh.c
View file @
cfe08e71
...
...
@@ -2657,7 +2657,7 @@ static HRESULT parse_texture_filename(ID3DXFileData *filedata, LPSTR *filename_o
hr
=
filedata
->
lpVtbl
->
Lock
(
filedata
,
&
data_size
,
(
const
void
**
)
&
data
);
if
(
FAILED
(
hr
))
return
hr
;
/* FIXME: String must be retr
eive directly instead
through a pointer once ID3DXFILE is fixed */
/* FIXME: String must be retr
ieved directly instead of
through a pointer once ID3DXFILE is fixed */
if
(
data_size
<
sizeof
(
LPSTR
))
{
WARN
(
"truncated data (%lu bytes)
\n
"
,
data_size
);
filedata
->
lpVtbl
->
Unlock
(
filedata
);
...
...
@@ -2864,11 +2864,8 @@ static HRESULT parse_material_list(ID3DXFileData *filedata, struct mesh_data *me
if
(
num_materials
!=
mesh
->
num_materials
)
{
WARN
(
"only %u of %u materials defined
\n
"
,
num_materials
,
mesh
->
num_materials
);
hr
=
E_FAIL
;
goto
end
;
}
hr
=
D3D_OK
;
end:
filedata
->
lpVtbl
->
Unlock
(
filedata
);
return
hr
;
...
...
@@ -3125,8 +3122,6 @@ static HRESULT parse_skin_mesh_info(ID3DXFileData *filedata, struct mesh_data *m
data
+=
2
*
sizeof
(
WORD
);
mesh_data
->
nb_bones
=
*
(
WORD
*
)
data
;
hr
=
D3DXCreateSkinInfoFVF
(
mesh_data
->
num_vertices
,
mesh_data
->
fvf
,
mesh_data
->
nb_bones
,
&
mesh_data
->
skin_info
);
if
(
FAILED
(
hr
))
goto
end
;
}
else
{
const
char
*
name
;
DWORD
nb_influences
;
...
...
@@ -3150,12 +3145,8 @@ static HRESULT parse_skin_mesh_info(ID3DXFileData *filedata, struct mesh_data *m
if
(
SUCCEEDED
(
hr
))
hr
=
mesh_data
->
skin_info
->
lpVtbl
->
SetBoneOffsetMatrix
(
mesh_data
->
skin_info
,
index
,
(
const
D3DMATRIX
*
)(
data
+
nb_influences
*
(
sizeof
(
DWORD
)
+
sizeof
(
FLOAT
))));
if
(
FAILED
(
hr
))
goto
end
;
}
hr
=
D3D_OK
;
end:
filedata
->
lpVtbl
->
Unlock
(
filedata
);
return
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