瀏覽代碼

Move Some Functions Under #ifdef .... PVIEW

Roger Hughston 20 年之前
父節點
當前提交
5daca17ee6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      panda/src/display/graphicsEngine.cxx

+ 3 - 1
panda/src/display/graphicsEngine.cxx

@@ -1454,6 +1454,8 @@ terminate_threads() {
   _threads.clear();
   _threads.clear();
 }
 }
 
 
+
+#ifdef DO_PSTATS
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: GraphicsEngine::pstats_count_cycler_type
 //     Function: GraphicsEngine::pstats_count_cycler_type
 //       Access: Private, Static
 //       Access: Private, Static
@@ -1489,7 +1491,7 @@ pstats_count_dirty_cycler_type(TypeHandle type, int count, void *data) {
   }
   }
   (*ci).second.set_level(count);
   (*ci).second.set_level(count);
 }
 }
-
+#endif // DO_PSTATS
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: GraphicsEngine::get_invert_polygon_state
 //     Function: GraphicsEngine::get_invert_polygon_state
 //       Access: Protected, Static
 //       Access: Protected, Static