mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
reverse order for robustness
This commit is contained in:
parent
6c2eee140d
commit
45c2aafe47
@ -3613,8 +3613,8 @@ framebuffer_copy_to_ram(Texture *tex, int z, const DisplayRegion *dr,
|
||||
<< ")" << endl;
|
||||
}
|
||||
|
||||
size_t image_size = tex->get_ram_image_size();
|
||||
unsigned char *image_ptr = tex->modify_ram_image();
|
||||
size_t image_size = tex->get_ram_image_size();
|
||||
if (z >= 0) {
|
||||
nassertr(z < tex->get_z_size(), false);
|
||||
image_size = tex->get_expected_ram_page_size();
|
||||
|
Loading…
x
Reference in New Issue
Block a user