diff --git a/hxd/res/Image.hx b/hxd/res/Image.hx index e09037f39..f1137a53b 100644 --- a/hxd/res/Image.hx +++ b/hxd/res/Image.hx @@ -127,6 +127,9 @@ class Image extends Resource { var colbits = f.readByte(); var colType = f.readByte(); inf.pixelFormat = switch ([colbits, colType]) { + case [1, _]: BGRA; + case [2, _]: BGRA; + case [4, _]: BGRA; case [8, _]: BGRA; // TODO : grayscale png image case [16, 0]: R16U; case [16, 2]: RGBA16U; // RGB16U is not supported on DirectX !