Use ShaderTraits based shader for paint background
Little bit less usage of old Shader API.
This commit is contained in:
parent
ad7246e010
commit
5657405d32
1 changed files with 2 additions and 2 deletions
|
@ -1137,8 +1137,8 @@ void SceneOpenGL2::doPaintBackground(const QVector< float >& vertices)
|
|||
vbo->setUseColor(true);
|
||||
vbo->setData(vertices.count() / 2, 2, vertices.data(), NULL);
|
||||
|
||||
ShaderBinder binder(ShaderManager::ColorShader);
|
||||
binder.shader()->setUniform(GLShader::Offset, QVector2D(0, 0));
|
||||
ShaderBinder binder(ShaderTrait::UniformColor);
|
||||
binder.shader()->setUniform(GLShader::ModelViewProjectionMatrix, m_projectionMatrix);
|
||||
|
||||
vbo->render(GL_TRIANGLES);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue