[effects] Use shader traits API for MouseMark effect

This commit is contained in:
Martin Gräßlin 2015-11-27 10:04:56 +01:00
parent 2add89e274
commit 700adad9b1

View file

@ -125,7 +125,8 @@ void MouseMarkEffect::paintScreen(int mask, QRegion region, ScreenPaintData& dat
vbo->reset(); vbo->reset();
vbo->setUseColor(true); vbo->setUseColor(true);
vbo->setColor(color); vbo->setColor(color);
ShaderBinder binder(ShaderManager::ColorShader); ShaderBinder binder(ShaderTrait::UniformColor);
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.projectionMatrix());
QVector<float> verts; QVector<float> verts;
foreach (const Mark & mark, marks) { foreach (const Mark & mark, marks) {
verts.clear(); verts.clear();