[Mesa-dev] [PATCH 06/14] meta: Fix buffer object assignment to account for both pack and unpack bo's
Anuj Phogat
anuj.phogat at gmail.com
Mon Feb 23 14:36:43 PST 2015
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 at gmail.com>
---
src/mesa/drivers/common/meta_tex_subimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/common/meta_tex_subimage.c b/src/mesa/drivers/common/meta_tex_subimage.c
index efcbce6..4bf7cd6 100644
--- a/src/mesa/drivers/common/meta_tex_subimage.c
+++ b/src/mesa/drivers/common/meta_tex_subimage.c
@@ -98,7 +98,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);
--
1.9.3
More information about the mesa-dev
mailing list