From: Brian Paul Date: Fri, 17 Apr 2009 14:09:17 +0000 (-0600) Subject: demos: move glewInit() after glutCreateWindow() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=047efcd050a92687403952910de4fded3df46964;p=mesa.git 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. --- diff --git a/progs/tests/afsmultiarb.c b/progs/tests/afsmultiarb.c index 162ab19493c..ca25a4d75bf 100644 --- a/progs/tests/afsmultiarb.c +++ b/progs/tests/afsmultiarb.c @@ -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 );