mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix bits_per_pixel validation in BMP and TGA loader modules.
This commit is contained in:
@@ -53,7 +53,7 @@ Error ImageLoaderBMP::convert_to_image(Ref<Image> p_image,
|
||||
err = FAILED;
|
||||
}
|
||||
|
||||
if (bits_per_pixel != 24 || bits_per_pixel != 32) {
|
||||
if (!(bits_per_pixel == 24 || bits_per_pixel == 32)) {
|
||||
err = FAILED;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user