From a09ede8cc9a59c63407a206aaaaa80c9cb804d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 27 Nov 2015 10:58:05 +0100 Subject: [PATCH] [effects] Use shader traits API to render wallpaper in cube effect --- effects/cube/cube.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 58e906c488..46ce9c697e 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -407,7 +407,8 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) // wallpaper if (wallpaper) { - ShaderBinder binder(ShaderManager::SimpleShader); + ShaderBinder binder(ShaderTrait::MapTexture); + binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.projectionMatrix()); wallpaper->bind(); wallpaper->render(region, rect); wallpaper->unbind();