浏览代码

don't double-compress images

David Rose 16 年之前
父节点
当前提交
5c1fd06799
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      panda/src/gobj/texture.cxx

+ 1 - 1
panda/src/gobj/texture.cxx

@@ -5738,7 +5738,7 @@ filter_3d_unsigned_short(unsigned char *&p, const unsigned char *&q,
 bool Texture::
 do_squish(Texture::CompressionMode compression, int squish_flags) {
 #ifdef HAVE_SQUISH
-  if (_ram_images.empty()) {
+  if (_ram_images.empty() || _ram_image_compression != CM_off) {
     return false;
   }