Page 1 of 1

Crash loading texture

Posted: 26 Oct 2021, 16:30
by Logrus
Hi.
Crash when loading texture 60x170
(DX11, Noesis 3.1.0)

FileTextureProvider calculates numMipLeves incorrectly
Ptr<Texture> FileTextureProvider::LoadTexture(const Uri& uri, RenderDevice* device)
{
....
 uint32_t numLevels = Max(Log2(x), Log2(y));   /////  Min(Log2(x), Log2(y))    !!!!
}

Re: Crash loading texture

Posted: 26 Oct 2021, 17:25
by jsantos
Yes, this was fixed in 3.1.1, please upgrade. Thanks for the feedback!