mirror of
https://github.com/godotengine/godot.git
synced 2024-12-05 02:25:47 +00:00
Merge pull request #11730 from gabrielformiga/fix-small-png-texture-import
Change to Image::shrink_x2 function preventing it set a 0 width/height for mipmapped textures
This commit is contained in:
commit
2fbffb7cde
@ -1013,8 +1013,8 @@ void Image::shrink_x2() {
|
||||
copymem(w.ptr(), &r[ofs], new_size);
|
||||
}
|
||||
|
||||
width /= 2;
|
||||
height /= 2;
|
||||
width = MAX(width / 2, 1);
|
||||
height = MAX(height / 2, 1);
|
||||
data = new_img;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user