diff options
Diffstat (limited to 'src/demos/fslight.c')
-rw-r--r-- | src/demos/fslight.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/demos/fslight.c b/src/demos/fslight.c index 191a4e43..773108a4 100644 --- a/src/demos/fslight.c +++ b/src/demos/fslight.c @@ -462,11 +462,9 @@ Init(void) " gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;\n" " normal = gl_NormalMatrix * gl_Normal;\n" "}\n"; - const char *version; - version = (const char *) glGetString(GL_VERSION); - if (version[0] == '1') { - printf("This program requires OpenGL 2.x or higher, found %s\n", version); + if (!GLEW_VERSION_2_0) { + printf("This program requires OpenGL 2.x or higher\n"); exit(1); } |