Commits

iru  committed 982ec9f Draft

GlEnd before swapping buffers. Also, glFlush.

  • Participants
  • Parent commits c49d933

Comments (0)

Files changed (1)

 	
 	for(i=0; i < sys->nparts; i++)
 		glVertex2f(sys->part[i].r.x, sys->part[i].r.y);
+	glEnd();
+
+	glFlush();
 	glutSwapBuffers();
-	
-	glEnd();
 }
 
 void
 	glutInit(&argc, argv);
 	glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
 	glutInitWindowSize(w, h);
-	glutInitWindowPosition(0, 0);
 	glutCreateWindow(argv[0]);
 	glClearColor(0.0, 0.0, 0.0, 1.0);
 	glOrtho(0, w, h, 0, 0, 1);