Fix build for 3.2.

This commit is contained in:
Relintai 2020-04-09 15:57:17 +02:00
parent a1f57d9f86
commit b78d280a6e

View File

@ -430,7 +430,6 @@ int TexturePacker::get_offset_for_format(Image::Format format) {
case Image::FORMAT_R8:
case Image::FORMAT_RG8:
case Image::FORMAT_RGBA4444:
case Image::FORMAT_RGB565:
case Image::FORMAT_RF:
case Image::FORMAT_RGF:
case Image::FORMAT_RGBF:
@ -460,8 +459,13 @@ int TexturePacker::get_offset_for_format(Image::Format format) {
case Image::FORMAT_ETC2_RGB8:
case Image::FORMAT_ETC2_RGBA8:
case Image::FORMAT_ETC2_RGB8A1:
#if VERSION_MAJOR >= 4
case Image::FORMAT_RGB565:
case Image::FORMAT_ETC2_RA_AS_RG:
case Image::FORMAT_DXT5_RA_AS_RG:
#else
case Image::FORMAT_RGBA5551:
#endif
case Image::FORMAT_MAX:
return 0;
}