From 6143e2d65168a628aeb54db4cfecd1bb1d53b8aa Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Tue, 12 Jan 2016 19:37:38 +1100 Subject: [PATCH] mesa: print the invalid enum when CreateShader fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Tapani Pälli --- 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 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; } -- 2.30.2