Fix support for 565 textures (#2347)
* Fix support for 565 textures This requires exposing a new USHORT_565 pixel data type. * Update JS bindings
This commit is contained in:
@@ -430,6 +430,7 @@ public:
|
||||
|
||||
PixelDataType getType(int format) const noexcept {
|
||||
switch (format) {
|
||||
case BITMAP_CONFIG_RGB_565: return PixelDataType::USHORT_565;
|
||||
case BITMAP_CONFIG_RGBA_F16: return PixelDataType::HALF;
|
||||
default: return PixelDataType::UBYTE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user