Qt 6.11 is out! See what's new in the release
blog
QQuickWindow::createTextureFromImage cant generate QSGTexture with mipmap
-
I want generate a QSGTexture which has mipmap, thus I can use QSGTexture::Linear to see a smooth picture, but I use
QSGTexture *m_texture = window()->createTextureFromImage(cur_image,
QQuickWindow::TextureIsOpaque);
or
QSGTexture *m_texture = window()->createTextureFromImage(cur_image,
QQuickWindow::TextureHasMipmaps);
the result m_texture doesnt have mipmap