Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
41b6f4ae
Commit
41b6f4ae
authored
Aug 19, 2011
by
Michael Mc Donnell
Committed by
Alexandre Julliard
Aug 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use 0 instead of D3DLOCK_DISCARD in load_skin_mesh_from_xof.
parent
342faea0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mesh.c
dlls/d3dx9_36/mesh.c
+3
-3
No files found.
dlls/d3dx9_36/mesh.c
View file @
41b6f4ae
...
...
@@ -2966,7 +2966,7 @@ static HRESULT load_skin_mesh_from_xof(IDirectXFileData *filedata,
hr
=
D3DXCreateMeshFVF
(
mesh_data
.
num_tri_faces
,
total_vertices
,
options
,
mesh_data
.
fvf
,
device
,
&
d3dxmesh
);
if
(
FAILED
(
hr
))
goto
cleanup
;
hr
=
d3dxmesh
->
lpVtbl
->
LockVertexBuffer
(
d3dxmesh
,
D3DLOCK_DISCARD
,
&
vertices
);
hr
=
d3dxmesh
->
lpVtbl
->
LockVertexBuffer
(
d3dxmesh
,
0
,
&
vertices
);
if
(
FAILED
(
hr
))
goto
cleanup
;
out_ptr
=
vertices
;
...
...
@@ -3008,7 +3008,7 @@ static HRESULT load_skin_mesh_from_xof(IDirectXFileData *filedata,
}
d3dxmesh
->
lpVtbl
->
UnlockVertexBuffer
(
d3dxmesh
);
hr
=
d3dxmesh
->
lpVtbl
->
LockIndexBuffer
(
d3dxmesh
,
D3DLOCK_DISCARD
,
(
void
**
)
&
indices
);
hr
=
d3dxmesh
->
lpVtbl
->
LockIndexBuffer
(
d3dxmesh
,
0
,
(
void
**
)
&
indices
);
if
(
FAILED
(
hr
))
goto
cleanup
;
index_in_ptr
=
mesh_data
.
indices
;
...
...
@@ -3037,7 +3037,7 @@ static HRESULT load_skin_mesh_from_xof(IDirectXFileData *filedata,
if
(
mesh_data
.
material_indices
)
{
DWORD
*
attrib_buffer
=
NULL
;
hr
=
d3dxmesh
->
lpVtbl
->
LockAttributeBuffer
(
d3dxmesh
,
D3DLOCK_DISCARD
,
&
attrib_buffer
);
hr
=
d3dxmesh
->
lpVtbl
->
LockAttributeBuffer
(
d3dxmesh
,
0
,
&
attrib_buffer
);
if
(
FAILED
(
hr
))
goto
cleanup
;
for
(
i
=
0
;
i
<
mesh_data
.
num_poly_faces
;
i
++
)
{
...
...
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