Browse Source

this debug test doesn't work on all drivers

David Rose 18 years ago
parent
commit
ee69090a45
1 changed files with 0 additions and 7 deletions
  1. 0 7
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 0 - 7
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -3071,14 +3071,7 @@ end_occlusion_query() {
       << "ending occlusion query index " << index << "\n";
       << "ending occlusion query index " << index << "\n";
   }
   }
 
 
-#ifndef NDEBUG
-  GLint current_id;
-  _glGetQueryiv(GL_SAMPLES_PASSED, GL_CURRENT_QUERY, &current_id);
-  nassertr(current_id == index, NULL);
-#endif  // NDEBUG
-
   _current_occlusion_query = NULL;
   _current_occlusion_query = NULL;
-
   _glEndQuery(GL_SAMPLES_PASSED);
   _glEndQuery(GL_SAMPLES_PASSED);
 
 
   // Temporary hack to try working around an apparent driver bug on
   // Temporary hack to try working around an apparent driver bug on