summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-17 09:15:58 -0600
committerBrian Paul <[email protected]>2009-04-17 09:16:48 -0600
commit90c880f08996cce57273544d8ba11b56ce2a06f3 (patch)
treea3dfa7ccc27c1a9ee8e036ef48aa343cfa3a4e24 /progs
parent3b760729158ff39a40688980d7a823b006e0a31a (diff)
demos: move glewInit() call, fixes crash/bug 21247
Diffstat (limited to 'progs')
-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 9c2fad97d9d..af9b62d33e6 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);