浏览代码

*** empty log message ***

cxgeorge 24 年之前
父节点
当前提交
dbe2e6caea
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx

+ 3 - 1
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

@@ -3137,7 +3137,9 @@ apply_texture(TextureContext *tc) {
     if (tc==NULL) {
         return;  // use enable_texturing to disable/enable
     }
-  add_to_texture_record(tc);
+    #ifdef DO_PSTATS
+       add_to_texture_record(tc);
+    #endif
 
 //  activate();  inactive
 //  bind_texture(tc);