[effects] Use shader traits API to render wallpaper in cube effect

This commit is contained in:
Martin Gräßlin 2015-11-27 10:58:05 +01:00
parent 8d9321ca4c
commit a09ede8cc9

View file

@ -407,7 +407,8 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data)
// wallpaper // wallpaper
if (wallpaper) { if (wallpaper) {
ShaderBinder binder(ShaderManager::SimpleShader); ShaderBinder binder(ShaderTrait::MapTexture);
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.projectionMatrix());
wallpaper->bind(); wallpaper->bind();
wallpaper->render(region, rect); wallpaper->render(region, rect);
wallpaper->unbind(); wallpaper->unbind();