[effects] Use shader traits API to render wallpaper in cube effect
This commit is contained in:
parent
8d9321ca4c
commit
a09ede8cc9
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue