summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-01-12 19:37:38 +1100
committerTimothy Arceri <[email protected]>2016-01-13 09:46:56 +1100
commit6143e2d65168a628aeb54db4cfecd1bb1d53b8aa (patch)
tree2329666ddfa1b20b2eb08544725f2c3e9890a325
parentc034dbeda8850fe1f3ec0dbdbd73344ace024748 (diff)
mesa: print the invalid enum when CreateShader fails
Reviewed-by: Tapani Pälli <[email protected]>
-rw-r--r--src/mesa/main/shaderapi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index e258ad9d1db..cdc85f3413b 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;
}