mirror of
https://github.com/Relintai/texture_packer.git
synced 2025-01-29 15:49:21 +01:00
Fix build for 3.2.
This commit is contained in:
parent
a1f57d9f86
commit
b78d280a6e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user