[effects] Use shader traits in Resize
This commit is contained in:
parent
5c59f4261b
commit
9fcedcc2f8
1 changed files with 2 additions and 1 deletions
|
@ -85,7 +85,8 @@ void ResizeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, Window
|
|||
GLVertexBuffer *vbo = GLVertexBuffer::streamingBuffer();
|
||||
vbo->reset();
|
||||
vbo->setUseColor(true);
|
||||
ShaderBinder binder(ShaderManager::ColorShader);
|
||||
ShaderBinder binder(ShaderTrait::UniformColor);
|
||||
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.screenProjectionMatrix());
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
color.setAlphaF(alpha);
|
||||
|
|
Loading…
Reference in a new issue