Merge pull request #10008 from RandomShaper/fix-misplaced-operator
Fix equality when assignment intended
This commit is contained in:
commit
168cb8c94b
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ void ResourceImporterTexture::_save_stex(const Ref<Image> &p_image, const String
|
||||||
format |= StreamTexture::FORMAT_BIT_DETECT_NORMAL;
|
format |= StreamTexture::FORMAT_BIT_DETECT_NORMAL;
|
||||||
|
|
||||||
if ((p_compress_mode == COMPRESS_LOSSLESS || p_compress_mode == COMPRESS_LOSSY) && p_image->get_format() > Image::FORMAT_RGBA8) {
|
if ((p_compress_mode == COMPRESS_LOSSLESS || p_compress_mode == COMPRESS_LOSSY) && p_image->get_format() > Image::FORMAT_RGBA8) {
|
||||||
p_compress_mode == COMPRESS_UNCOMPRESSED; //these can't go as lossy
|
p_compress_mode = COMPRESS_UNCOMPRESSED; //these can't go as lossy
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (p_compress_mode) {
|
switch (p_compress_mode) {
|
||||||
|
|
Loading…
Reference in a new issue