summaryrefslogtreecommitdiffstats
path: root/progs/glsl/texdemo1.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-11-17 19:22:29 -0700
committerBrian Paul <[email protected]>2009-11-17 19:22:29 -0700
commit89e20ab3aeff37f0eff79ab0c5e73be3d3185ce8 (patch)
tree5a4baeec05034d7b48a4ca9a44a796af9e88c7e8 /progs/glsl/texdemo1.c
parent6acb82dab0056f0d5f3522c7b063db8024ef81d8 (diff)
progs/glsl: use ShadersSupported()
Diffstat (limited to 'progs/glsl/texdemo1.c')
-rw-r--r--progs/glsl/texdemo1.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/progs/glsl/texdemo1.c b/progs/glsl/texdemo1.c
index 5b1913a722b..2076e6aef94 100644
--- a/progs/glsl/texdemo1.c
+++ b/progs/glsl/texdemo1.c
@@ -400,11 +400,8 @@ InitPrograms(void)
static void
Init(GLboolean useImageFiles)
{
- const char *version = (const char *) glGetString(GL_VERSION);
-
- if (version[0] != '2' || version[1] != '.') {
- printf("Warning: this program expects OpenGL 2.0\n");
- /*exit(1);*/
+ if (!ShadersSupported()) {
+ exit(1);
}
printf("GL_RENDERER = %s\n",(const char *) glGetString(GL_RENDERER));