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
7d971714
Commit
7d971714
authored
Aug 31, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 31, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use resource mapping functions in process_vertices_strided().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d039ee73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
device.c
dlls/wined3d/device.c
+7
-2
No files found.
dlls/wined3d/device.c
View file @
7d971714
...
...
@@ -2885,6 +2885,8 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
DWORD
DestFVF
)
{
struct
wined3d_matrix
mat
,
proj_mat
,
view_mat
,
world_mat
;
struct
wined3d_map_desc
map_desc
;
struct
wined3d_box
box
=
{
0
};
struct
wined3d_viewport
vp
;
UINT
vertex_size
;
unsigned
int
i
;
...
...
@@ -2925,11 +2927,14 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
doClip
=
FALSE
;
vertex_size
=
get_flexible_vertex_size
(
DestFVF
);
if
(
FAILED
(
hr
=
wined3d_buffer_map
(
dest
,
dwDestIndex
*
vertex_size
,
dwCount
*
vertex_size
,
&
dest_ptr
,
0
)))
box
.
left
=
dwDestIndex
*
vertex_size
;
box
.
right
=
box
.
left
+
dwCount
*
vertex_size
;
if
(
FAILED
(
hr
=
wined3d_resource_map
(
&
dest
->
resource
,
0
,
&
map_desc
,
&
box
,
0
)))
{
WARN
(
"Failed to map buffer, hr %#x.
\n
"
,
hr
);
return
hr
;
}
dest_ptr
=
map_desc
.
data
;
wined3d_device_get_transform
(
device
,
WINED3D_TS_VIEW
,
&
view_mat
);
wined3d_device_get_transform
(
device
,
WINED3D_TS_PROJECTION
,
&
proj_mat
);
...
...
@@ -3139,7 +3144,7 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
}
}
wined3d_
buffer_unmap
(
dest
);
wined3d_
resource_unmap
(
&
dest
->
resource
,
0
);
return
WINED3D_OK
;
}
...
...
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