Ver Fonte

Fixed it so pointer textures works again. Why does clear image kill it?

Bei Yang há 16 anos atrás
pai
commit
129d70e265
1 ficheiros alterados com 1 adições e 4 exclusões
  1. 1 4
      panda/src/gobj/texture.cxx

+ 1 - 4
panda/src/gobj/texture.cxx

@@ -963,12 +963,9 @@ set_ram_mipmap_pointer(int n, void *image, size_t page_size) {
   while (n >= (int)_ram_images.size()) {
     _ram_images.push_back(RamImage());
   }
-  //if (page_size == 0) {
-  //  page_size = image.size();
-  //}
 
   _ram_images[n]._page_size = page_size; 
-  _ram_images[n]._image.clear();
+  //_ram_images[n]._image.clear(); wtf is going on?!
   _ram_images[n]._pointer_image = image;
   ++_image_modified;
 }