Browse Source

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

Bei Yang 16 years ago
parent
commit
129d70e265
1 changed files with 1 additions and 4 deletions
  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()) {
   while (n >= (int)_ram_images.size()) {
     _ram_images.push_back(RamImage());
     _ram_images.push_back(RamImage());
   }
   }
-  //if (page_size == 0) {
-  //  page_size = image.size();
-  //}
 
 
   _ram_images[n]._page_size = page_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;
   _ram_images[n]._pointer_image = image;
   ++_image_modified;
   ++_image_modified;
 }
 }