From 2add89e2740efcbeead57ea1bd7840581d8eb57e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 27 Nov 2015 09:50:39 +0100 Subject: [PATCH] [effects] Use shader trait api in MouseClick --- effects/mouseclick/mouseclick.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/effects/mouseclick/mouseclick.cpp b/effects/mouseclick/mouseclick.cpp index 84aac04b12..19d3fc1c8b 100644 --- a/effects/mouseclick/mouseclick.cpp +++ b/effects/mouseclick/mouseclick.cpp @@ -369,9 +369,10 @@ void MouseClickEffect::drawCircleQPainter(const QColor &color, float cx, float c painter->restore(); } -void MouseClickEffect::paintScreenSetupGl(int, QRegion, ScreenPaintData&) +void MouseClickEffect::paintScreenSetupGl(int, QRegion, ScreenPaintData &data) { - ShaderManager::instance()->pushShader(ShaderManager::ColorShader); + GLShader *shader = ShaderManager::instance()->pushShader(ShaderTrait::UniformColor); + shader->setUniform(GLShader::ModelViewProjectionMatrix, data.projectionMatrix()); glLineWidth(m_lineWidth); glEnable(GL_BLEND);