diff options
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/texstorage.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c index 070d62eb834..958c7b7a679 100644 --- a/src/mesa/main/texstorage.c +++ b/src/mesa/main/texstorage.c @@ -539,13 +539,9 @@ texturestorage(GLuint dims, GLuint texture, GLsizei levels, return; } - /* Get the texture object by Name. */ - texObj = _mesa_lookup_texture(ctx, texture); - if (!texObj) { - _mesa_error(ctx, GL_INVALID_OPERATION, - "%s(texture = %d)", caller, texture); + texObj = _mesa_lookup_texture_err(ctx, texture, caller); + if (!texObj) return; - } /* Check target. This is done here so that _mesa_texture_storage * can receive unsized formats. |