Browse Source

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

Joseph Lee 22 years ago
parent
commit
f4825cb99a
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

@@ -630,7 +630,9 @@ end_frame() {
   GraphicsStateGuardian::end_frame();
   GraphicsStateGuardian::end_frame();
 
 
   {
   {
+#ifdef DO_PSTATS
     PStatTimer timer(_flush_pcollector);
     PStatTimer timer(_flush_pcollector);
+#endif
     // Calling glFlush() at the end of the frame is particularly
     // Calling glFlush() at the end of the frame is particularly
     // necessary if this is a single-buffered visual, so that the frame
     // necessary if this is a single-buffered visual, so that the frame
     // will be finished drawing before we return to the application.
     // will be finished drawing before we return to the application.