mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
don't double-compress images
This commit is contained in:
parent
45dd1457c9
commit
5c1fd06799
@ -5738,7 +5738,7 @@ filter_3d_unsigned_short(unsigned char *&p, const unsigned char *&q,
|
|||||||
bool Texture::
|
bool Texture::
|
||||||
do_squish(Texture::CompressionMode compression, int squish_flags) {
|
do_squish(Texture::CompressionMode compression, int squish_flags) {
|
||||||
#ifdef HAVE_SQUISH
|
#ifdef HAVE_SQUISH
|
||||||
if (_ram_images.empty()) {
|
if (_ram_images.empty() || _ram_image_compression != CM_off) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user