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
dd462052
Commit
dd462052
authored
Aug 30, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the resource size for copying between a surface's DIB and PBO.
parent
e7c523b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
surface.c
dlls/wined3d/surface.c
+3
-5
No files found.
dlls/wined3d/surface.c
View file @
dd462052
...
...
@@ -1052,7 +1052,7 @@ static HRESULT surface_getdc(struct wined3d_surface *surface)
/* Sync the DIB with the PBO. This can't be done earlier because Map()
* activates the allocatedMemory. */
if
(
surface
->
flags
&
SFLAG_PBO
)
memcpy
(
surface
->
dib
.
bitmap_data
,
surface
->
resource
.
allocatedMemory
,
surface
->
dib
.
bitmap_
size
);
memcpy
(
surface
->
dib
.
bitmap_data
,
surface
->
resource
.
allocatedMemory
,
surface
->
resource
.
size
);
return
hr
;
}
...
...
@@ -3813,11 +3813,9 @@ HRESULT CDECL wined3d_surface_releasedc(struct wined3d_surface *surface, HDC dc)
return
WINEDDERR_NODC
;
}
/* Copy the contents of the DIB over to the PBO. */
if
((
surface
->
flags
&
SFLAG_PBO
)
&&
surface
->
resource
.
allocatedMemory
)
{
/* Copy the contents of the DIB over to the PBO. */
memcpy
(
surface
->
resource
.
allocatedMemory
,
surface
->
dib
.
bitmap_data
,
surface
->
dib
.
bitmap_size
);
}
memcpy
(
surface
->
resource
.
allocatedMemory
,
surface
->
dib
.
bitmap_data
,
surface
->
resource
.
size
);
/* We locked first, so unlock now. */
wined3d_surface_unmap
(
surface
);
...
...
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