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);