From 700adad9b191d6d3ab0e9cd9f4456608208e1e50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 27 Nov 2015 10:04:56 +0100 Subject: [PATCH] [effects] Use shader traits API for MouseMark effect --- effects/mousemark/mousemark.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/mousemark/mousemark.cpp b/effects/mousemark/mousemark.cpp index 95fade8c70..b30e9cdc91 100644 --- a/effects/mousemark/mousemark.cpp +++ b/effects/mousemark/mousemark.cpp @@ -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 verts; foreach (const Mark & mark, marks) { verts.clear();