From 047efcd050a92687403952910de4fded3df46964 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 17 Apr 2009 08:09:17 -0600 Subject: [PATCH] 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. --- progs/tests/afsmultiarb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.30.2