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
4d638863
Commit
4d638863
authored
Aug 30, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Use wined3d_resource_map() in d3d9_indexbuffer_Lock().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f1e78067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
buffer.c
dlls/d3d9/buffer.c
+7
-1
No files found.
dlls/d3d9/buffer.c
View file @
4d638863
...
...
@@ -465,14 +465,20 @@ static HRESULT WINAPI d3d9_indexbuffer_Lock(IDirect3DIndexBuffer9 *iface,
UINT
offset
,
UINT
size
,
void
**
data
,
DWORD
flags
)
{
struct
d3d9_indexbuffer
*
buffer
=
impl_from_IDirect3DIndexBuffer9
(
iface
);
struct
wined3d_map_desc
wined3d_map_desc
;
struct
wined3d_box
wined3d_box
=
{
0
};
HRESULT
hr
;
TRACE
(
"iface %p, offset %u, size %u, data %p, flags %#x.
\n
"
,
iface
,
offset
,
size
,
data
,
flags
);
wined3d_box
.
left
=
offset
;
wined3d_box
.
right
=
offset
+
size
;
wined3d_mutex_lock
();
hr
=
wined3d_buffer_map
(
buffer
->
wined3d_buffer
,
offset
,
size
,
(
BYTE
**
)
data
,
flags
);
hr
=
wined3d_resource_map
(
wined3d_buffer_get_resource
(
buffer
->
wined3d_buffer
),
0
,
&
wined3d_map_desc
,
&
wined3d_box
,
flags
);
wined3d_mutex_unlock
();
*
data
=
wined3d_map_desc
.
data
;
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