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 aebf23a78c8cabfa3bd7270ce4a82906e7c85bb4..4fb3199a190ae7821a67e152a44312459268bd0e 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;
 }