diff options
author | José Fonseca <[email protected]> | 2009-01-24 16:47:50 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-01-24 16:47:50 +0000 |
commit | efdb7799d31b33ce82f9fdedf43ae17bd68f5c84 (patch) | |
tree | 8a829457c3c8349bc4816a954a78eb6de512153a /progs/demos | |
parent | 2e61d136c27b9c740190643668f1e3509ce609dc (diff) |
progs: Fix isosurf.
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/isosurf.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/progs/demos/isosurf.c b/progs/demos/isosurf.c index e2ff6bea0b3..393741cc9d6 100644 --- a/progs/demos/isosurf.c +++ b/progs/demos/isosurf.c @@ -1033,7 +1033,6 @@ static GLint Args(int argc, char **argv) int main(int argc, char **argv) { GLenum type; - char *extensions; GLuint arg_mode = Args(argc, argv); @@ -1052,19 +1051,18 @@ int main(int argc, char **argv) glutInitDisplayMode(type); if (glutCreateWindow("Isosurface") <= 0) { - glewInit(); exit(0); } - /* Make sure server supports the vertex array extension */ - extensions = (char *) glGetString( GL_EXTENSIONS ); + glewInit(); - if (!strstr( extensions, "GL_EXT_vertex_array" )) + /* Make sure server supports the vertex array extension */ + if (!GLEW_EXT_vertex_array) { printf("Vertex arrays not supported by this renderer\n"); allowed &= ~(LOCKED|DRAW_ARRAYS|DRAW_ELTS|ARRAY_ELT); } - else if (!strstr( extensions, "GL_EXT_compiled_vertex_array" )) + else if (!GLEW_EXT_compiled_vertex_array) { printf("Compiled vertex arrays not supported by this renderer\n"); allowed &= ~LOCKED; |