Crash loading texture
Posted: 26 Oct 2021, 16:30
Hi.
Crash when loading texture 60x170
(DX11, Noesis 3.1.0)
FileTextureProvider calculates numMipLeves incorrectly
Crash when loading texture 60x170
(DX11, Noesis 3.1.0)
FileTextureProvider calculates numMipLeves incorrectly
Code: Select all
Ptr<Texture> FileTextureProvider::LoadTexture(const Uri& uri, RenderDevice* device)
{
....
uint32_t numLevels = Max(Log2(x), Log2(y)); ///// Min(Log2(x), Log2(y)) !!!!
}