From f99dcdf07733b1cffeab89edb0fe0908cb753bd5 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 28 Mar 2014 16:44:17 +0100 Subject: Disable mipmapping on the style item The recent removal of QSGPlainTexture::setHasMipMaps() made the texture material enable mipmapping on the texture by default. Previously this was not the case, the material did not enable mipmapping on the texture regardless of the value of mipmapFiltering. The default value (Nearest) now properly enables mipmapping but this is not ideal for the style item. Therefore we disable mipmapping explicitly. Task-number: QTBUG-37690 Change-Id: I15607fd0c3a06f0cefc416b74f6cee25ef7966bd Reviewed-by: Gunnar Sletta --- src/controls/Private/qquickstyleitem.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/controls/Private') diff --git a/src/controls/Private/qquickstyleitem.cpp b/src/controls/Private/qquickstyleitem.cpp index 49baa1fd..4a90e60b 100644 --- a/src/controls/Private/qquickstyleitem.cpp +++ b/src/controls/Private/qquickstyleitem.cpp @@ -104,6 +104,8 @@ public: { m_geometry.setDrawingMode(GL_TRIANGLE_STRIP); setGeometry(&m_geometry); + // The texture material has mipmap filtering set to Nearest by default. This is not ideal. + m_material.setMipmapFiltering(QSGTexture::None); setMaterial(&m_material); } -- cgit v1.2.1