Do not generate mipmaps for textures loaded from KTX files.

PiperOrigin-RevId: 830874812
Change-Id: Ie9dccc52acd5ffd26e5d4f3597f3834f81ebebcb
This commit is contained in:
Haroon Qureshi
2025-11-11 05:50:44 -08:00
committed by Copybara-Service
parent 2261733aa4
commit 1b2206fc50
@@ -354,11 +354,6 @@ filament::IndirectLight* ObjectManager::LoadFallbackIndirectLight(
filament::math::float3 spherical_harmonics[9];
filament::Texture* tex =
CreateKtxTexture(engine_, asset.payload, asset.size, spherical_harmonics);
// TODO: Revisit this to make it this work in WebGL
#ifndef __EMSCRIPTEN__
tex->generateMipmaps(*engine_);
#endif
return CreateIndirectLight(tex, &spherical_harmonics, intensity);
}