From: Eric Anholt Date: Thu, 19 Aug 2010 01:01:55 +0000 (-0700) Subject: mesa: Fix the whining for link failures to actually be under MESA_GLSL=dump. X-Git-Tag: 062012170305~10581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af2ef53a2701426d32382e861d8f238a449e9cd9;p=profile%2Fivi%2Fmesa.git mesa: Fix the whining for link failures to actually be under MESA_GLSL=dump. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 7b0c28e..fafc620 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2750,6 +2750,11 @@ _mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog) if (prog->LinkStatus) { if (!ctx->Driver.LinkShader(ctx, prog)) { prog->LinkStatus = GL_FALSE; + } + } + + if (ctx->Shader.Flags & GLSL_DUMP) { + if (!prog->LinkStatus) { printf("GLSL shader program %d failed to link\n", prog->Name); }