Add missing call to glutInit.
authorIan Romanick <idr@us.ibm.com>
Tue, 24 Oct 2006 20:50:08 +0000 (20:50 +0000)
committerIan Romanick <idr@us.ibm.com>
Tue, 24 Oct 2006 20:50:08 +0000 (20:50 +0000)
progs/demos/cubemap.c

index 0a59b98..ef5d235 100644 (file)
@@ -454,6 +454,7 @@ static void usage(void)
 
 int main( int argc, char *argv[] )
 {
+   glutInit(&argc, argv);
    glutInitWindowPosition(0, 0);
    glutInitWindowSize(600, 500);
    glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );