Browse Source

pstats tracking async loads

David Rose 17 years ago
parent
commit
75de7a30c9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 4 - 0
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -7536,6 +7536,10 @@ upload_simple_texture(CLP(TextureContext) *gtc) {
     }
     }
   }
   }
 
 
+#ifdef DO_PSTATS
+  _data_transferred_pcollector.add_level(image_size);
+#endif
+
   GLP(TexImage2D)(GL_TEXTURE_2D, 0, internal_format,
   GLP(TexImage2D)(GL_TEXTURE_2D, 0, internal_format,
                   width, height, 0,
                   width, height, 0,
                   external_format, component_type, image_ptr);
                   external_format, component_type, image_ptr);