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
bb385366
Commit
bb385366
authored
Feb 10, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_texture_get_pitch() in surface_upload_from_surface().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef040d71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
surface.c
dlls/wined3d/surface.c
+3
-3
No files found.
dlls/wined3d/surface.c
View file @
bb385366
...
...
@@ -1590,6 +1590,7 @@ static BOOL surface_check_block_align_rect(struct wined3d_surface *surface, cons
HRESULT
surface_upload_from_surface
(
struct
wined3d_surface
*
dst_surface
,
const
POINT
*
dst_point
,
struct
wined3d_surface
*
src_surface
,
const
RECT
*
src_rect
)
{
unsigned
int
src_row_pitch
,
src_slice_pitch
;
const
struct
wined3d_format
*
src_format
;
const
struct
wined3d_format
*
dst_format
;
unsigned
int
src_fmt_flags
,
dst_fmt_flags
;
...
...
@@ -1599,7 +1600,6 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
UINT
update_w
,
update_h
;
UINT
dst_w
,
dst_h
;
RECT
r
,
dst_rect
;
UINT
src_pitch
;
POINT
p
;
TRACE
(
"dst_surface %p, dst_point %s, src_surface %p, src_rect %s.
\n
"
,
...
...
@@ -1687,10 +1687,10 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
wined3d_texture_bind_and_dirtify
(
dst_surface
->
container
,
context
,
FALSE
);
surface_get_memory
(
src_surface
,
&
data
,
src_surface
->
locations
);
src_pitch
=
wined3d_surface_get_pitch
(
src_surface
);
wined3d_texture_get_pitch
(
src_surface
->
container
,
src_surface
->
texture_level
,
&
src_row_pitch
,
&
src_slice_pitch
);
wined3d_surface_upload_data
(
dst_surface
,
gl_info
,
src_format
,
src_rect
,
src_pitch
,
dst_point
,
FALSE
,
wined3d_const_bo_address
(
&
data
));
src_
row_
pitch
,
dst_point
,
FALSE
,
wined3d_const_bo_address
(
&
data
));
context_release
(
context
);
...
...
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