Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.2
-
None
Description
QOpenGLTexture::TargetRectangle does not support Mipmaps, but calling QOpenGLTexture::setData() always implies an internal call to setMipLevels(), which generates a the warning "QAbstractOpenGLTexture::setMipLevels(): This texture target does not support mipmaps"
While most of the calls to setData take mipLevel as the first parameter, there are others such as void QOpenGLTexture::setData(const QImage &image, MipMapGeneration genMipMaps = GenerateMipMaps) that don't, and I can't think of a reason why the warning should be raised in that case. Even less when the second parameter is set to QOpenGLTexture::DontGenerateMipMaps.
This is polluting my debug window and making it unusable when calling it for each frame of a video application.