From: Gunnar Sletta Date: Thu, 14 Apr 2011 12:33:45 +0000 (+0200) Subject: Set the correct filtering when the texture is used as a shader source X-Git-Tag: qt-v5.0.0-alpha1~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f148b278715f561830352fc6f013b195ede3bce9;p=profile%2Fivi%2Fqtwayland.git Set the correct filtering when the texture is used as a shader source --- 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; }