Mesa (master): getteximage: fix _mesa_GetTextureSubImage()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Mon Mar 6 20:37:48 UTC 2017
Module: Mesa
Branch: master
Commit: 4317cd96d3022ad0ef7e1d5ffa82f5c2693bb44e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4317cd96d3022ad0ef7e1d5ffa82f5c2693bb44e
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Mon Mar 6 21:33:28 2017 +0100
getteximage: fix _mesa_GetTextureSubImage()
Oops.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100088
Fixes: 5ae54c0cf7 ("getteximage: avoid to lookup textures with id 0")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/main/texgetimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 37fda3d..658b0e5 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -1461,7 +1461,7 @@ _mesa_GetTextureSubImage(GLuint texture, GLint level,
struct gl_texture_object *texObj = NULL;
if (texture > 0)
- _mesa_lookup_texture(ctx, texture);
+ texObj = _mesa_lookup_texture(ctx, texture);
if (!texObj) {
_mesa_error(ctx, GL_INVALID_VALUE, "%s(texture)", caller);
More information about the mesa-commit
mailing list