Browse Source

CLP()::start_frame() should not use PStatTimer unless DO_PSTATS defined

Joseph Lee 22 years ago
parent
commit
6726f39637
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -612,7 +612,9 @@ begin_frame() {
     return false;
     return false;
   }
   }
 
 
+#ifdef DO_PSTATS
   _vertices_display_list_pcollector.clear_level();
   _vertices_display_list_pcollector.clear_level();
+#endif
 
 
   report_my_gl_errors();
   report_my_gl_errors();
   return true;
   return true;