Browse Source

Fix compile error when compiling with optimize level 4

rdb 11 years ago
parent
commit
296476f7dd
1 changed files with 4 additions and 2 deletions
  1. 4 2
      panda/src/display/pStatGPUTimer.h

+ 4 - 2
panda/src/display/pStatGPUTimer.h

@@ -53,8 +53,10 @@ public:
 private:
 #else // DO_PSTATS
 
-  INLINE PStatGPUTimer(GraphicsStateGuardian *, PStatCollector &) { }
-  INLINE PStatGPUTimer(GraphicsStateGuardian *, PStatCollector &, Thread *) { }
+  INLINE PStatGPUTimer(GraphicsStateGuardian *, PStatCollector &col)
+    : PStatTimer(col) { }
+  INLINE PStatGPUTimer(GraphicsStateGuardian *, PStatCollector &col, Thread *)
+    : PStatTimer(col) { }
   INLINE ~PStatGPUTimer() { }
 
 #endif  // DO_PSTATS