[Mesa-dev] [PATCH] mesa: print the invalid enum when CreateShader fails
Tapani Pälli
tapani.palli at intel.com
Tue Jan 12 04:51:28 PST 2016
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
On 01/12/2016 10:37 AM, Timothy Arceri wrote:
> ---
> 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..4321950 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)\n",
> + _mesa_enum_to_string(type));
> return 0;
> }
>
>
More information about the mesa-dev
mailing list