mesa: print the invalid enum when CreateShader fails

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Timothy Arceri 2016-01-12 19:37:38 +11:00
parent c034dbeda8
commit 6143e2d651
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}