summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2020-05-07 09:19:08 +0300
committerAntti Määttä <antti.maatta@qt.io>2020-05-07 10:11:32 +0300
commit7d12625223aaf52e55d7bb53946cea486cdedafa (patch)
treea15f678cb3dc8d0d6b9d86e47fefd7d1e2f20136
parentfa819899abd4d405da782b34abde8a23cbc2da5a (diff)
Add ECT2_EAC to supported ktx formats
Task-number: QT3DS-4102 Change-Id: I2dc4ab64715ffa3c2a13309b716ca4ffcdd51b3e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/runtimerender/resourcemanager/Qt3DSRenderLoadedTextureKTX.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTextureKTX.cpp b/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTextureKTX.cpp
index aea4543..93ad2d4 100644
--- a/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTextureKTX.cpp
+++ b/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTextureKTX.cpp
@@ -64,6 +64,8 @@ static inline int blockSizeForTextureFormat(int format)
static inline int runtimeFormat(quint32 internalFormat)
{
switch (internalFormat) {
+ case QOpenGLTexture::RGBA8_ETC2_EAC:
+ return NVRenderTextureFormats::RGBA8_ETC2_EAC;
case QOpenGLTexture::RGB8_ETC1:
return NVRenderTextureFormats::RGB8_ETC1;
case QOpenGLTexture::RGB8_ETC2: