Explorar el Código

Fixed ASTC decoding.

Branimir Karadžić hace 6 años
padre
commit
cf58871928
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      src/image.cpp

+ 10 - 0
src/image.cpp

@@ -4518,6 +4518,16 @@ namespace bimg
 			}
 			break;
 
+		case TextureFormat::ASTC4x4:
+		case TextureFormat::ASTC5x5:
+		case TextureFormat::ASTC6x6:
+		case TextureFormat::ASTC8x5:
+		case TextureFormat::ASTC8x6:
+		case TextureFormat::ASTC10x5:
+			imageDecodeToRgba8(_allocator, _dst, _src, _width, _height, _dstPitch, _srcFormat);
+			imageSwizzleBgra8(_dst, _dstPitch, _width, _height, _dst, _dstPitch);
+			break;
+
 		case TextureFormat::RGBA8:
 			{
 				const uint32_t srcPitch = _width * 4;