summaryrefslogtreecommitdiffstats
path: root/src/runtimerender/Qt3DSRenderUIPLoader.cpp
diff options
context:
space:
mode:
authorJanne Kangas <janne.kangas@qt.io>2019-12-05 07:37:47 +0200
committerJanne Kangas <janne.kangas@qt.io>2019-12-12 11:12:47 +0200
commit7f1f071d9e924a8c2ed1ffccf6c7354d40d480b4 (patch)
tree5a2ec5c962301d30d01d09defe057794f12c4ec7 /src/runtimerender/Qt3DSRenderUIPLoader.cpp
parent56e145b99add8dfe3c8067322abdbeecab9cf853 (diff)
Add project setting for automatically flipping compressed textures
Flip ktx and astc textures in shader if project settings has flipCompressedTextures flag set as true. Also, fix bug in shader generator UV flipping code. Task-id: QT3DS-4015 Change-Id: Ic406569c15e172c513f5d412ba41ab84348a392b Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/runtimerender/Qt3DSRenderUIPLoader.cpp')
-rw-r--r--src/runtimerender/Qt3DSRenderUIPLoader.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtimerender/Qt3DSRenderUIPLoader.cpp b/src/runtimerender/Qt3DSRenderUIPLoader.cpp
index 24e4c18..df02e78 100644
--- a/src/runtimerender/Qt3DSRenderUIPLoader.cpp
+++ b/src/runtimerender/Qt3DSRenderUIPLoader.cpp
@@ -1699,6 +1699,7 @@ struct SRenderUIPLoader : public IDOMReferenceResolver
QT3DS_ASSERT(success);
}
m_Reader.Att("preferKTX", m_Presentation->m_preferKTX);
+ m_Reader.Att("flipCompressedTextures", m_Presentation->m_flipCompressedTextures);
}
}
{