mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 20:18:28 +00:00
wined3d: Reference the source/destination bo in wined3d_texture_copy_sysmem_location().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c123ff8881
commit
42f90354ba
1 changed files with 2 additions and 0 deletions
|
@ -636,6 +636,7 @@ static BOOL wined3d_texture_copy_sysmem_location(struct wined3d_texture *texture
|
|||
GL_EXTCALL(glBindBuffer(GL_PIXEL_UNPACK_BUFFER, dst_bo->id));
|
||||
GL_EXTCALL(glBufferSubData(GL_PIXEL_UNPACK_BUFFER, 0, size, src.addr));
|
||||
GL_EXTCALL(glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0));
|
||||
wined3d_context_gl_reference_bo(wined3d_context_gl(context), dst_bo);
|
||||
checkGLcall("PBO upload");
|
||||
context_release(context);
|
||||
return TRUE;
|
||||
|
@ -648,6 +649,7 @@ static BOOL wined3d_texture_copy_sysmem_location(struct wined3d_texture *texture
|
|||
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, src_bo->id));
|
||||
GL_EXTCALL(glGetBufferSubData(GL_PIXEL_PACK_BUFFER, 0, size, dst.addr));
|
||||
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
|
||||
wined3d_context_gl_reference_bo(wined3d_context_gl(context), src_bo);
|
||||
checkGLcall("PBO download");
|
||||
context_release(context);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue