浏览代码

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

Joseph Lee 22 年之前
父节点
当前提交
f4825cb99a
共有 1 个文件被更改,包括 2 次插入0 次删除
  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();
 
   {
+#ifdef DO_PSTATS
     PStatTimer timer(_flush_pcollector);
+#endif
     // Calling glFlush() at the end of the frame is particularly
     // necessary if this is a single-buffered visual, so that the frame
     // will be finished drawing before we return to the application.