mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix loading rawtex
This commit is contained in:
parent
af64776780
commit
b27ad8aacb
@ -3228,7 +3228,7 @@ fillin(DatagramIterator &scan, BamReader *manager, bool has_rawdata) {
|
|||||||
_ram_images.reserve(num_ram_images);
|
_ram_images.reserve(num_ram_images);
|
||||||
for (int n = 0; n < num_ram_images; ++n) {
|
for (int n = 0; n < num_ram_images; ++n) {
|
||||||
_ram_images.push_back(RamImage());
|
_ram_images.push_back(RamImage());
|
||||||
_ram_images[n]._page_size = 0;
|
_ram_images[n]._page_size = get_expected_ram_page_size();
|
||||||
if (manager->get_file_minor_ver() >= 1) {
|
if (manager->get_file_minor_ver() >= 1) {
|
||||||
_ram_images[n]._page_size = scan.get_uint32();
|
_ram_images[n]._page_size = scan.get_uint32();
|
||||||
}
|
}
|
||||||
@ -3244,6 +3244,7 @@ fillin(DatagramIterator &scan, BamReader *manager, bool has_rawdata) {
|
|||||||
}
|
}
|
||||||
_loaded_from_image = true;
|
_loaded_from_image = true;
|
||||||
}
|
}
|
||||||
|
++_modified;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user