Explorar el Código

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 hace 10 años
padre
commit
068ba4ac78
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/mesa/drivers/common/meta_tex_subimage.c

+ 1
- 1
src/mesa/drivers/common/meta_tex_subimage.c Ver fichero

@@ -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);

Cargando…
Cancelar
Guardar