summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-17 08:09:17 -0600
committerBrian Paul <[email protected]>2009-04-17 08:11:00 -0600
commit047efcd050a92687403952910de4fded3df46964 (patch)
tree8258898bfd82074a633bb3da8135ad7cce654029
parent44d0e0caf4ad3b01dc08d8432867c449dc3f2a23 (diff)
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.
-rw-r--r--progs/tests/afsmultiarb.c2
1 files changed, 1 insertions, 1 deletions
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 );