summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-01-26 01:27:17 +0000
committerBrian Paul <[email protected]>2006-01-26 01:27:17 +0000
commit74235b1cf12266a80cec9533d670d77ab9e808a5 (patch)
tree2bef994322c5743ab845fa28ed2c8afb39eb52ee
parentf3cf636e571eaa719ea79a1076f2e11a9b9a43fa (diff)
remove the GL_HP_occlusion_test code
-rw-r--r--progs/osdemos/osdemo.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/progs/osdemos/osdemo.c b/progs/osdemos/osdemo.c
index cdb3c72423e..95e2ff97875 100644
--- a/progs/osdemos/osdemo.c
+++ b/progs/osdemos/osdemo.c
@@ -82,60 +82,12 @@ static void render_image( void )
glutSolidCone(1.0, 2.0, 16, 1);
glPopMatrix();
-#ifdef GL_HP_occlusion_test
- if (perf == 0) {
- GLboolean bRet;
- glDepthMask(GL_FALSE);
- glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
- glEnable(GL_OCCLUSION_TEST_HP);
- glGetBooleanv(GL_OCCLUSION_TEST_RESULT_HP,&bRet);
-
- glPushMatrix();
- glTranslatef(0.75, 0.0, -1.0);
- glMaterialfv( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, blue_mat );
- glutSolidSphere(1.0, 20, 20);
- glPopMatrix();
-
- glGetBooleanv(GL_OCCLUSION_TEST_RESULT_HP,&bRet);
- printf("Occlusion test 1 (result should be 1): %d\n",bRet);
-
- glDepthMask(GL_TRUE);
- glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
- glDisable(GL_OCCLUSION_TEST_HP);
- }
-#endif
-
glPushMatrix();
glTranslatef(0.75, 0.0, -1.0);
glMaterialfv( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, blue_mat );
glutSolidSphere(1.0, 20, 20);
glPopMatrix();
-#ifdef GL_HP_occlusion_test
- if (perf == 0){
- GLboolean bRet;
-
- glDepthMask(GL_FALSE);
- glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
- glEnable(GL_OCCLUSION_TEST_HP);
- glGetBooleanv(GL_OCCLUSION_TEST_RESULT_HP,&bRet);
-
- /* draw a sphere inside the previous sphere */
- glPushMatrix();
- glTranslatef(0.75, 0.0, -1.0);
- glMaterialfv( GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, blue_mat );
- glutSolidSphere(0.5, 20, 20);
- glPopMatrix();
-
- glGetBooleanv(GL_OCCLUSION_TEST_RESULT_HP,&bRet);
- printf("Occlusion test 2 (result should be 0): %d\n",bRet);
-
- glDepthMask(GL_TRUE);
- glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
- glDisable(GL_OCCLUSION_TEST_HP);
- }
-#endif
-
glPopMatrix();
/* This is very important!!!