Mesa (master): progs/util: warn when GLSL not supported
Brian Paul
brianp at kemper.freedesktop.org
Wed Nov 18 02:23:23 UTC 2009
Module: Mesa
Branch: master
Commit: 6acb82dab0056f0d5f3522c7b063db8024ef81d8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6acb82dab0056f0d5f3522c7b063db8024ef81d8
Author: Brian Paul <brianp at vmware.com>
Date: Tue Nov 17 19:22:11 2009 -0700
progs/util: warn when GLSL not supported
---
progs/util/shaderutil.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/progs/util/shaderutil.c b/progs/util/shaderutil.c
index aebf23a..4fb3199 100644
--- a/progs/util/shaderutil.c
+++ b/progs/util/shaderutil.c
@@ -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;
}
More information about the mesa-commit
mailing list