summaryrefslogtreecommitdiffstats
path: root/progs/demos/readpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/demos/readpix.c')
-rw-r--r--progs/demos/readpix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/progs/demos/readpix.c b/progs/demos/readpix.c
index bbb3a68effa..05f89bb53ea 100644
--- a/progs/demos/readpix.c
+++ b/progs/demos/readpix.c
@@ -382,12 +382,11 @@ int
main( int argc, char *argv[] )
{
GLboolean ciMode = GL_FALSE;
+ glutInitWindowSize( 750, 250 );
+ glutInit( &argc, argv );
if (argc > 1 && strcmp(argv[1], "-ci")==0) {
ciMode = GL_TRUE;
}
- glutInit( &argc, argv );
- glutInitWindowPosition( 0, 0 );
- glutInitWindowSize( 750, 250 );
if (ciMode)
glutInitDisplayMode( GLUT_INDEX | GLUT_DOUBLE );
else