Mesa (master): Update TextureParameter* error for incompatible texture targets
Iago Toral Quiroga
itoral at kemper.freedesktop.org
Wed Aug 9 07:29:45 UTC 2017
Module: Mesa
Branch: master
Commit: 4234b36f055b76c0cd3e893ba6c852f16edf6ac7
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4234b36f055b76c0cd3e893ba6c852f16edf6ac7
Author: Iago Toral Quiroga <itoral at igalia.com>
Date: Mon Aug 7 06:18:23 2017 +0200
Update TextureParameter* error for incompatible texture targets
The OpenGL 4.6 specs have been updated so that GetTextureParameter*
with a texture object with an incompatible TEXTURE_TARGET should now
report INVALID_OPERATION instead of INVALID_ENUM.
Fixes:
KHR-GL45.direct_state_access.textures_parameter_errors
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/main/texparam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index b6e91503ea..039b93349e 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -174,7 +174,7 @@ get_texobj_by_name(struct gl_context *ctx, GLuint texture, const char *name)
case GL_TEXTURE_RECTANGLE:
return texObj;
default:
- _mesa_error(ctx, GL_INVALID_ENUM, "%s(target)", name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s(target)", name);
return NULL;
}
More information about the mesa-commit
mailing list