Set the correct filtering when the texture is used as a shader source
authorGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 14 Apr 2011 12:33:45 +0000 (14:33 +0200)
committerGunnar Sletta <gunnar.sletta@nokia.com>
Thu, 14 Apr 2011 12:33:45 +0000 (14:33 +0200)
src/qt-compositor/compositor_api/waylandsurfaceitem.cpp

index 4472502..a3239f5 100644 (file)
@@ -110,6 +110,8 @@ void WaylandSurfaceItem::setSurface(WaylandSurface *surface)
 
 QSGTexture *WaylandSurfaceItem::texture() const
 {
+    if (m_texture)
+        m_texture->setFiltering(smooth() ? QSGTexture::Linear : QSGTexture::Nearest);
     return m_texture;
 }