From d0e57a57ccee08ceee2cccb95443230c8ea53a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 15 Jun 2011 21:40:15 +0200 Subject: [PATCH] Fix incorrect rendering of Cube Wallpaper with GL2 Textures should be rendered with simple shader when not being transformed. --- effects/cube/cube.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index bdc76de41f..cdef8e9d2f 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -375,9 +375,15 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) // wallpaper if (wallpaper) { + if (ShaderManager::instance()->isValid()) { + ShaderManager::instance()->pushShader(ShaderManager::SimpleShader); + } wallpaper->bind(); wallpaper->render(region, rect); wallpaper->unbind(); + if (ShaderManager::instance()->isValid()) { + ShaderManager::instance()->popShader(); + } } #ifndef KWIN_HAVE_OPENGLES