[effects] Use shader trait api in MouseClick
This commit is contained in:
parent
ff9ffe77ba
commit
2add89e274
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue