From ee69090a4512d2a2ac73480fcc9c152eb6c51d92 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 1 Jun 2007 22:16:40 +0000 Subject: [PATCH] this debug test doesn't work on all drivers --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index f3dbb21abc..c64390f14e 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -3071,14 +3071,7 @@ end_occlusion_query() { << "ending occlusion query index " << index << "\n"; } -#ifndef NDEBUG - GLint current_id; - _glGetQueryiv(GL_SAMPLES_PASSED, GL_CURRENT_QUERY, ¤t_id); - nassertr(current_id == index, NULL); -#endif // NDEBUG - _current_occlusion_query = NULL; - _glEndQuery(GL_SAMPLES_PASSED); // Temporary hack to try working around an apparent driver bug on