aboutsummaryrefslogtreecommitdiffstats
path: root/progs/demos
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos')
-rw-r--r--progs/demos/fslight.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/progs/demos/fslight.c b/progs/demos/fslight.c
index 395b7caa2c1..91a5a801327 100644
--- a/progs/demos/fslight.c
+++ b/progs/demos/fslight.c
@@ -467,8 +467,8 @@ Init(void)
const char *version;
version = (const char *) glGetString(GL_VERSION);
- if (version[0] != '2' || version[1] != '.') {
- printf("This program requires OpenGL 2.x, found %s\n", version);
+ if (version[0] == '1') {
+ printf("This program requires OpenGL 2.x or higher, found %s\n", version);
exit(1);
}