Mesa (master): progs/samples: added test/debug code for culling
Brian Paul
brianp at kemper.freedesktop.org
Tue Sep 1 01:36:10 UTC 2009
Module: Mesa
Branch: master
Commit: d762b5459be63b46b280a11847c9b1f2a7015e52
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d762b5459be63b46b280a11847c9b1f2a7015e52
Author: Brian Paul <brianp at vmware.com>
Date: Mon Aug 31 17:56:41 2009 -0600
progs/samples: added test/debug code for culling
---
progs/samples/select.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/progs/samples/select.c b/progs/samples/select.c
index 2c8f333..31ed93b 100644
--- a/progs/samples/select.c
+++ b/progs/samples/select.c
@@ -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)
More information about the mesa-commit
mailing list