summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-27 14:06:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-28 08:55:28 +0200
commitd2d85921605415908c553e84db654628f9f0c0b1 (patch)
tree161816623c32febde1c62d524fa1ef0a20a1aeda /vcl/opengl
parent26c82e22bf4f077022ae88d0a7f8ad0fa6d2a5ba (diff)
loplugin:oncevar in vcl
Change-Id: I37a6dacda12e1c2910737d74aa344c7e2e195aeb Reviewed-on: https://gerrit.libreoffice.org/39328 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/program.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/opengl/program.cxx b/vcl/opengl/program.cxx
index 0dab8b02e1f6..c3e32e627044 100644
--- a/vcl/opengl/program.cxx
+++ b/vcl/opengl/program.cxx
@@ -344,8 +344,7 @@ void OpenGLProgram::ApplyMatrix(float fWidth, float fHeight, float fPixelOffset)
mfLastHeight = fHeight;
mfLastPixelOffset = fPixelOffset;
- OString sProjectionMatrix("mvp");
- GLuint nUniform = GetUniformLocation(sProjectionMatrix);
+ GLuint nUniform = GetUniformLocation("mvp");
glm::mat4 aMVP = glm::ortho(0.0f, fWidth, fHeight, 0.0f, 0.0f, 1.0f);