From: Brian Paul Date: Fri, 17 Apr 2009 15:15:58 +0000 (-0600) Subject: demos: move glewInit() call, fixes crash/bug 21247 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90c880f08996cce57273544d8ba11b56ce2a06f3;p=mesa.git demos: move glewInit() call, fixes crash/bug 21247 --- 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);