From 90c880f08996cce57273544d8ba11b56ce2a06f3 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 17 Apr 2009 09:15:58 -0600 Subject: [PATCH] demos: move glewInit() call, fixes crash/bug 21247 --- progs/tests/vparray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2