Add ETC2_EAC compressed texture format 62/259362/1
authorHeeyong Song <heeyong.song@samsung.com>
Mon, 7 Jun 2021 00:48:50 +0000 (09:48 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Mon, 7 Jun 2021 00:48:50 +0000 (09:48 +0900)
Change-Id: I70801783da355a28f17004cf507381774ecfb6be

dali/internal/render/renderers/render-texture.cpp

index 89366f6..e0f2c1b 100644 (file)
@@ -107,10 +107,10 @@ constexpr Graphics::Format ConvertPixelFormat(Pixel::Format format)
       return Graphics::Format::ETC2_R8G8B8A1_SRGB_BLOCK; // no 'punchthrough' format
 
     case Pixel::COMPRESSED_RGBA8_ETC2_EAC:
-      return Graphics::Format::ETC2_R8G8B8_UNORM_BLOCK; // doesn't seem to map onto any format
+      return Graphics::Format::ETC2_R8G8B8A8_UNORM_BLOCK;
 
     case Pixel::COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:
-      return Graphics::Format::ETC2_R8G8B8A8_SRGB_BLOCK; // doesn't seem to map onto any format
+      return Graphics::Format::ETC2_R8G8B8A8_SRGB_BLOCK;
 
     case Pixel::COMPRESSED_RGB8_ETC1:
       return Graphics::Format::ETC2_R8G8B8_UNORM_BLOCK; // doesn't seem to be supported at all