Closed Slartibarty closed 9 months ago
Thanks! Confirmed this fixes our previous lack of mipmapping.
I was going to ask if we need QOpenGLTexture::setAutoMipMapGenerationEnabled
but according to https://doc.qt.io/qt-6/qopengltexture.html#setAutoMipMapGenerationEnabled it's enabled by default
This was happening because allocateStorage allocates space for the texture and its mips up-front, the user of QOpenGLTexture is required to determine the number of mips required for a texture beforehand. allocateStorage was allocating space for mip 0 and no others, leading to no additional mips being generated.
This also adds explicit format and type to allocateStorage for only this instance, although it still remains optional.