[effects] Use shader trait api in MouseClick

This commit is contained in:
Martin Gräßlin 2015-11-27 09:50:39 +01:00
parent ff9ffe77ba
commit 2add89e274

View file

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