[effects] Use shader traits in Resize

This commit is contained in:
Martin Gräßlin 2015-11-30 14:40:37 +01:00
parent 5c59f4261b
commit 9fcedcc2f8

View file

@ -85,7 +85,8 @@ void ResizeEffect::paintWindow(EffectWindow* w, int mask, QRegion region, Window
GLVertexBuffer *vbo = GLVertexBuffer::streamingBuffer(); GLVertexBuffer *vbo = GLVertexBuffer::streamingBuffer();
vbo->reset(); vbo->reset();
vbo->setUseColor(true); vbo->setUseColor(true);
ShaderBinder binder(ShaderManager::ColorShader); ShaderBinder binder(ShaderTrait::UniformColor);
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.screenProjectionMatrix());
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
color.setAlphaF(alpha); color.setAlphaF(alpha);