progs/samples: added test/debug code for culling
authorBrian Paul <brianp@vmware.com>
Mon, 31 Aug 2009 23:56:41 +0000 (17:56 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 1 Sep 2009 01:34:47 +0000 (19:34 -0600)
progs/samples/select.c

index 2c8f333bfa95ac35131b5df66df2848f8bdd1213..31ed93b9e05d55b9c0dc3b235147a3f3731a966b 100644 (file)
@@ -92,6 +92,12 @@ static void Init(void)
     numObjects = 10;
     InitObjects(numObjects);
     glGetIntegerv(GL_VIEWPORT, vp);
+
+#if 0 /* debug - test culling */
+    glCullFace(GL_BACK);
+    glFrontFace(GL_CW);
+    glEnable(GL_CULL_FACE);
+#endif
 }
 
 static void Reshape(int width, int height)