demos: move glewInit() after glutCreateWindow()

Fixes segfault.  See bug 21239.  However, the demo doesn't render
properly.  Probably a bug in the GL_ATI_fragment_shader code.
This commit is contained in:
Brian Paul
2009-04-17 08:09:17 -06:00
parent 44d0e0caf4
commit 047efcd050

View File

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