From 5657405d3215937a549fe1bced79fdb50f4e4cfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 26 Nov 2015 09:37:23 +0100 Subject: [PATCH] Use ShaderTraits based shader for paint background Little bit less usage of old Shader API. --- scene_opengl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index f9522fff81..1363c33c75 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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); }