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:
@@ -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 );
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user