From e14c8258f7986b1c49530bc147af2a34669eafaa Mon Sep 17 00:00:00 2001 From: Aleksi Sapon Date: Wed, 22 Jul 2020 13:34:35 -0400 Subject: [PATCH] Fix KTX texture format for latest version --- tools/cmgen/src/cmgen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmgen/src/cmgen.cpp b/tools/cmgen/src/cmgen.cpp index 05b1f01a2c..15e78b5a15 100644 --- a/tools/cmgen/src/cmgen.cpp +++ b/tools/cmgen/src/cmgen.cpp @@ -933,7 +933,7 @@ void iblRoughnessPrefilter( .endianness = KtxBundle::ENDIAN_DEFAULT, .glType = KtxBundle::R11F_G11F_B10F, .glTypeSize = 1, - .glFormat = KtxBundle::R11F_G11F_B10F, + .glFormat = KtxBundle::RGB, .glInternalFormat = KtxBundle::R11F_G11F_B10F, .glBaseInternalFormat = KtxBundle::R11F_G11F_B10F, .pixelWidth = 1U << baseExp, @@ -1192,7 +1192,7 @@ void extractCubemapFaces(utils::JobSystem& js, const utils::Path& iname, const C .endianness = KtxBundle::ENDIAN_DEFAULT, .glType = KtxBundle::R11F_G11F_B10F, .glTypeSize = 1, - .glFormat = KtxBundle::R11F_G11F_B10F, + .glFormat = KtxBundle::RGB, .glInternalFormat = KtxBundle::R11F_G11F_B10F, .glBaseInternalFormat = KtxBundle::R11F_G11F_B10F, .pixelWidth = dim,