Parcourir la source

Fix glstuff compilation error

rdb il y a 10 ans
Parent
commit
c855049f24
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 1 - 1
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

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