Mesa (master): mesa: print the invalid enum when CreateShader fails
Timothy Arceri
tarceri at kemper.freedesktop.org
Tue Jan 12 22:47:06 UTC 2016
Module: Mesa
Branch: master
Commit: 6143e2d65168a628aeb54db4cfecd1bb1d53b8aa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6143e2d65168a628aeb54db4cfecd1bb1d53b8aa
Author: Timothy Arceri <timothy.arceri at collabora.com>
Date: Tue Jan 12 19:37:38 2016 +1100
mesa: print the invalid enum when CreateShader fails
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
---
src/mesa/main/shaderapi.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index e258ad9..cdc85f3 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -300,7 +300,8 @@ create_shader(struct gl_context *ctx, GLenum type)
GLuint name;
if (!_mesa_validate_shader_target(ctx, type)) {
- _mesa_error(ctx, GL_INVALID_ENUM, "CreateShader(type)");
+ _mesa_error(ctx, GL_INVALID_ENUM, "CreateShader(%s)",
+ _mesa_enum_to_string(type));
return 0;
}
More information about the mesa-commit
mailing list