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
cec2ff4f
Commit
cec2ff4f
authored
Aug 31, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d11: Use wined3d_resource_map() in d3d10_buffer_Map().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8df5add2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
buffer.c
dlls/d3d11/buffer.c
+4
-2
No files found.
dlls/d3d11/buffer.c
View file @
cec2ff4f
...
...
@@ -303,6 +303,7 @@ static UINT STDMETHODCALLTYPE d3d10_buffer_GetEvictionPriority(ID3D10Buffer *ifa
static
HRESULT
STDMETHODCALLTYPE
d3d10_buffer_Map
(
ID3D10Buffer
*
iface
,
D3D10_MAP
map_type
,
UINT
map_flags
,
void
**
data
)
{
struct
d3d_buffer
*
buffer
=
impl_from_ID3D10Buffer
(
iface
);
struct
wined3d_map_desc
wined3d_map_desc
;
HRESULT
hr
;
TRACE
(
"iface %p, map_type %u, map_flags %#x, data %p.
\n
"
,
iface
,
map_type
,
map_flags
,
data
);
...
...
@@ -311,8 +312,9 @@ static HRESULT STDMETHODCALLTYPE d3d10_buffer_Map(ID3D10Buffer *iface, D3D10_MAP
FIXME
(
"Ignoring map_flags %#x.
\n
"
,
map_flags
);
wined3d_mutex_lock
();
hr
=
wined3d_buffer_map
(
buffer
->
wined3d_buffer
,
0
,
0
,
(
BYTE
**
)
data
,
wined3d_map_flags_from_d3d11_map_type
(
map_type
));
hr
=
wined3d_resource_map
(
wined3d_buffer_get_resource
(
buffer
->
wined3d_buffer
),
0
,
&
wined3d_map_desc
,
NULL
,
wined3d_map_flags_from_d3d11_map_type
(
map_type
));
*
data
=
wined3d_map_desc
.
data
;
wined3d_mutex_unlock
();
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