mesa: add KHR_no_error support for glCompressedTex*SubImage2D()
[mesa.git] / src / mesa / main / program_resource.c
index 4b5be6f52d858ceb205d6c040e95b8a562fcc8c6..4eacdfb9e9aeda6c09170220df369828799f102c 100644 (file)
@@ -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;