summaryrefslogtreecommitdiff
path: root/progs/tests/vparray.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-04-17 09:15:58 -0600
committerBrian Paul <brianp@vmware.com>2009-04-17 09:16:48 -0600
commit90c880f08996cce57273544d8ba11b56ce2a06f3 (patch)
treea3dfa7ccc27c1a9ee8e036ef48aa343cfa3a4e24 /progs/tests/vparray.c
parent3b760729158ff39a40688980d7a823b006e0a31a (diff)
demos: move glewInit() call, fixes crash/bug 21247
Diffstat (limited to 'progs/tests/vparray.c')
-rw-r--r--progs/tests/vparray.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/tests/vparray.c b/progs/tests/vparray.c
index 9c2fad97d9..af9b62d33e 100644
--- a/progs/tests/vparray.c
+++ b/progs/tests/vparray.c
@@ -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);