X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fprogram_resource.c;h=4eacdfb9e9aeda6c09170220df369828799f102c;hb=edd50828618ed2efe799013c2723d67c407d86b4;hp=4b5be6f52d858ceb205d6c040e95b8a562fcc8c6;hpb=90d950038f801551cc5b939ef31c379bccf96f5f;p=mesa.git diff --git a/src/mesa/main/program_resource.c b/src/mesa/main/program_resource.c index 4b5be6f52d8..4eacdfb9e9a 100644 --- a/src/mesa/main/program_resource.c +++ b/src/mesa/main/program_resource.c @@ -76,7 +76,7 @@ lookup_linked_program(GLuint program, const char *caller) if (!prog) return NULL; - if (prog->data->LinkStatus == GL_FALSE) { + if (prog->data->LinkStatus == linking_failure) { _mesa_error(ctx, GL_INVALID_OPERATION, "%s(program not linked)", caller); return NULL;