demos: move glewInit() after glutCreateWindow()
authorBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 14:09:17 +0000 (08:09 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Apr 2009 14:11:00 +0000 (08:11 -0600)
Fixes segfault.  See bug 21239.  However, the demo doesn't render
properly.  Probably a bug in the GL_ATI_fragment_shader code.

progs/tests/afsmultiarb.c

index 162ab19493c64a4f4255aaa1b0ec5aa373a031c1..ca25a4d75bf085880a57fb57e45eeaeb36c14d39 100644 (file)
@@ -442,8 +442,8 @@ int main( int argc, char *argv[] )
    glutInitWindowSize( 300, 300 );
    glutInitWindowPosition( 0, 0 );
    glutInitDisplayMode( GLUT_RGB | GLUT_DOUBLE );
-   glewInit();
    glutCreateWindow(argv[0] );
+   glewInit();
 
    Init( argc, argv );