Browse Source

Fix reported memory usage when using immutable texture storage storage

tobspr 10 years ago
parent
commit
8d6ad30c07
1 changed files with 2 additions and 0 deletions
  1. 2 0
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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

@@ -11504,6 +11504,8 @@ upload_texture(CLP(TextureContext) *gtc, bool force, bool uses_mipmaps) {
       gtc->_width = width;
       gtc->_width = width;
       gtc->_height = height;
       gtc->_height = height;
       gtc->_depth = depth;
       gtc->_depth = depth;
+      gtc->update_data_size_bytes(get_texture_memory_size(gtc));
+
       needs_reload = false;
       needs_reload = false;
     }
     }
   } else {
   } else {