demos: move glewInit() call, fixes crash/bug 21247
authorBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 15:15:58 +0000 (09:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 15:16:48 +0000 (09:16 -0600)
progs/tests/vparray.c

index 9c2fad97d9d90012ddcd960263aac149dac3e21c..af9b62d33e6b5a23e46ff59df4b930ba76a7fa61 100644 (file)
@@ -280,9 +280,9 @@ int main(int argc, char **argv)
    glutInitWindowPosition(0, 0);
    glutInitWindowSize(400, 400);
    if (glutCreateWindow("Isosurface") <= 0) {
-      glewInit();
       exit(0);
    }
+   glewInit();
    glutReshapeFunc(Reshape);
    glutKeyboardFunc(Key);
    glutSpecialFunc(SpecialKey);