From f148b278715f561830352fc6f013b195ede3bce9 Mon Sep 17 00:00:00 2001 From: Gunnar Sletta Date: Thu, 14 Apr 2011 14:33:45 +0200 Subject: [PATCH] Set the correct filtering when the texture is used as a shader source --- src/qt-compositor/compositor_api/waylandsurfaceitem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp b/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp index 4472502..a3239f5 100644 --- a/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp +++ b/src/qt-compositor/compositor_api/waylandsurfaceitem.cpp @@ -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; } -- 2.7.4