Browse Source

*** empty log message ***

cxgeorge 24 years ago
parent
commit
dbe2e6caea
1 changed files with 3 additions and 1 deletions
  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) {
     if (tc==NULL) {
         return;  // use enable_texturing to disable/enable
         return;  // use enable_texturing to disable/enable
     }
     }
-  add_to_texture_record(tc);
+    #ifdef DO_PSTATS
+       add_to_texture_record(tc);
+    #endif
 
 
 //  activate();  inactive
 //  activate();  inactive
 //  bind_texture(tc);
 //  bind_texture(tc);