mesa: Fix the whining for link failures to actually be under MESA_GLSL=dump.

This commit is contained in:
Eric Anholt 2010-08-18 18:01:55 -07:00
parent 365ce61997
commit af2ef53a27
1 changed files with 5 additions and 0 deletions

View File

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