mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 22:00:37 +02:00
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@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
ff494fe999
commit
4317cd96d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue