[effects] Use shader traits API to render wallpaper in cube effect
parent
8d9321ca4c
commit
a09ede8cc9
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue