From 24a509319ad49001f2de865fd531774ed421f8f8 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 7 Jun 2021 09:48:50 +0900 Subject: [PATCH] Add ETC2_EAC compressed texture format Change-Id: I70801783da355a28f17004cf507381774ecfb6be --- dali/internal/render/renderers/render-texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/internal/render/renderers/render-texture.cpp b/dali/internal/render/renderers/render-texture.cpp index 89366f6..e0f2c1b 100644 --- a/dali/internal/render/renderers/render-texture.cpp +++ b/dali/internal/render/renderers/render-texture.cpp @@ -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 -- 2.7.4