progs/util: warn when GLSL not supported
authorBrian Paul <brianp@vmware.com>
Wed, 18 Nov 2009 02:22:11 +0000 (19:22 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Nov 2009 02:22:11 +0000 (19:22 -0700)
progs/util/shaderutil.c

index aebf23a..4fb3199 100644 (file)
@@ -34,7 +34,8 @@ ShadersSupported(void)
       fprintf(stderr, "Warning: Trying ARB GLSL instead of OpenGL 2.x.  This may not work.\n");
       return GL_TRUE;
    }
-   return GL_TRUE;
+   fprintf(stderr, "Sorry, GLSL not supported with this OpenGL.\n");
+   return GL_FALSE;
 }