mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
oops
This commit is contained in:
parent
cb3ff73396
commit
6eb99067ef
@ -1576,7 +1576,7 @@ has_all_ram_mipmap_images() const {
|
|||||||
CPTA_uchar Texture::
|
CPTA_uchar Texture::
|
||||||
get_ram_mipmap_image(int n) {
|
get_ram_mipmap_image(int n) {
|
||||||
ReMutexHolder holder(_lock);
|
ReMutexHolder holder(_lock);
|
||||||
if (n < (int)_ram_images.size() || !_ram_images[n]._image.empty()) {
|
if (n < (int)_ram_images.size() && !_ram_images[n]._image.empty()) {
|
||||||
return _ram_images[n]._image;
|
return _ram_images[n]._image;
|
||||||
}
|
}
|
||||||
return CPTA_uchar(get_class_type());
|
return CPTA_uchar(get_class_type());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user