Browse Source

meta: Fix buffer object assignment to account for both pack and unpack bo's

create_texture_for_pbo() is shared by _mesa_meta_pbo_GetTexSubImage()
and _mesa_meta_pbo_TexSubImage() functions. So, we need to account
for both pack and unpack buffer objects.

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
tags/10.6-branchpoint
Anuj Phogat 10 years ago
parent
commit
068ba4ac78
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/drivers/common/meta_tex_subimage.c

+ 1
- 1
src/mesa/drivers/common/meta_tex_subimage.c View File

@@ -96,7 +96,7 @@ create_texture_for_pbo(struct gl_context *ctx, bool create_pbo,
_mesa_BufferData(pbo_target, row_stride * height, pixels,
GL_STREAM_DRAW);

buffer_obj = ctx->Unpack.BufferObj;
buffer_obj = packing->BufferObj;
pixels = NULL;

_mesa_BindBuffer(pbo_target, 0);

Loading…
Cancel
Save