Fix incorrect rendering of Cube Wallpaper with GL2
Textures should be rendered with simple shader when not being transformed.
This commit is contained in:
parent
89ec0b63aa
commit
d0e57a57cc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue