[effects] Use shader traits API for MouseMark effect
This commit is contained in:
parent
2add89e274
commit
700adad9b1
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ void MouseMarkEffect::paintScreen(int mask, QRegion region, ScreenPaintData& dat
|
|||
vbo->reset();
|
||||
vbo->setUseColor(true);
|
||||
vbo->setColor(color);
|
||||
ShaderBinder binder(ShaderManager::ColorShader);
|
||||
ShaderBinder binder(ShaderTrait::UniformColor);
|
||||
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, data.projectionMatrix());
|
||||
QVector<float> verts;
|
||||
foreach (const Mark & mark, marks) {
|
||||
verts.clear();
|
||||
|
|
Loading…
Reference in a new issue