mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
Fixed pointer textures to work with SIMPLE_THREADS
This commit is contained in:
parent
f448429ee3
commit
538e17d302
@ -958,7 +958,7 @@ get_ram_mipmap_pointer(int n) {
|
|||||||
void Texture::
|
void Texture::
|
||||||
set_ram_mipmap_pointer(int n, void *image, size_t page_size) {
|
set_ram_mipmap_pointer(int n, void *image, size_t page_size) {
|
||||||
MutexHolder holder(_lock);
|
MutexHolder holder(_lock);
|
||||||
nassertv(_ram_image_compression != CM_off || page_size == get_expected_ram_mipmap_image_size(n));
|
nassertv(_ram_image_compression != CM_off || do_get_expected_ram_mipmap_image_size(n));
|
||||||
|
|
||||||
while (n >= (int)_ram_images.size()) {
|
while (n >= (int)_ram_images.size()) {
|
||||||
_ram_images.push_back(RamImage());
|
_ram_images.push_back(RamImage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user