diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-19 14:51:48 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-08-20 07:41:37 +0000 |
commit | 9a7e8df77badae8c740681e47e0b44fe5c71df83 (patch) | |
tree | 6c70c6ab6dfa9ce36d10617132238c836ef960ab /tools | |
parent | a239a528e86121a4bed015ef81b4dc8c9912f4da (diff) |
qgltf: Set the correct internal format for ETC1 textures
Change-Id: Ic4615231f93ed53b67ed6091497cfd90e8a20cbc
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qgltf/qgltf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qgltf/qgltf.cpp b/tools/qgltf/qgltf.cpp index a62ce7d6b..44568ae39 100644 --- a/tools/qgltf/qgltf.cpp +++ b/tools/qgltf/qgltf.cpp @@ -2361,8 +2361,8 @@ void GltfExporter::save(const QString &inputFilename) if (!imageMap.contains(it.key())) imageMap[it.key()] = newImageName(); texture["source"] = imageMap[it.key()]; - texture["format"] = 6408; // RGBA - texture["internalFormat"] = 6408; + texture["format"] = 0x1908; // RGBA + texture["internalFormat"] = !m_compressedTextures.contains(it.key()) ? 0x1908 : 0x8D64; // RGBA / ETC1 texture["sampler"] = QStringLiteral("sampler_1"); texture["target"] = 3553; // TEXTURE_2D texture["type"] = 5121; // UNSIGNED_BYTE |