mesa: Fix the whining for link failures to actually be under MESA_GLSL=dump.
This commit is contained in:
parent
365ce61997
commit
af2ef53a27
|
@ -2750,6 +2750,11 @@ _mesa_glsl_link_shader(GLcontext *ctx, struct gl_shader_program *prog)
|
||||||
if (prog->LinkStatus) {
|
if (prog->LinkStatus) {
|
||||||
if (!ctx->Driver.LinkShader(ctx, prog)) {
|
if (!ctx->Driver.LinkShader(ctx, prog)) {
|
||||||
prog->LinkStatus = GL_FALSE;
|
prog->LinkStatus = GL_FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ctx->Shader.Flags & GLSL_DUMP) {
|
||||||
|
if (!prog->LinkStatus) {
|
||||||
printf("GLSL shader program %d failed to link\n", prog->Name);
|
printf("GLSL shader program %d failed to link\n", prog->Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue