diff options
Diffstat (limited to 'src/trivial/fs-tri.c')
-rw-r--r-- | src/trivial/fs-tri.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/trivial/fs-tri.c b/src/trivial/fs-tri.c index 8d754769..3022b097 100644 --- a/src/trivial/fs-tri.c +++ b/src/trivial/fs-tri.c @@ -155,11 +155,9 @@ Init(void) " normal = gl_NormalMatrix * gl_Normal;\n" "}\n"; #endif - 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 (!GLEW_VERSION_2_0) { + printf("This program requires OpenGL 2.x\n"); exit(1); } |