From b51ef59c7c4b752f14eb491b4be7ef23d1ccce9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=B6glund?= Date: Tue, 18 Jan 2011 22:36:58 +0000 Subject: [PATCH] Disable the lanczos filter with the Intel driver in Mesa 7.10. It's reported to cause kwin to hang when rendering thumbnails. svn path=/branches/KDE/4.6/kdebase/workspace/; revision=1215502 --- lanczosfilter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 088fb1bb1b..9d52eea07c 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -24,6 +24,7 @@ along with this program. If not, see . #ifdef KWIN_HAVE_OPENGL_COMPOSITING #include + #include #endif #include @@ -74,6 +75,11 @@ void LanczosFilter::init() return; } + // The lanczos filter is reported to be broken with the Intel driver and Mesa 7.10 + GLPlatform *gl = GLPlatform::instance(); + if ( gl->driver() == Driver_Intel && gl->mesaVersion() >= kVersionNumber(7, 10) ) + return; + m_shader = new LanczosShader( this ); if( !m_shader->init() ) {