From 98ad26da3d8a23709c68357fb346265f04fe205a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Wed, 15 Dec 2021 00:20:56 +0100 Subject: [PATCH] Changed glm::identity to explicit construction --- src/graphics/opengl/gl33objectrenderer.cpp | 2 +- src/graphics/opengl/gl33renderers.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/opengl/gl33objectrenderer.cpp b/src/graphics/opengl/gl33objectrenderer.cpp index c6612036..20b4749b 100644 --- a/src/graphics/opengl/gl33objectrenderer.cpp +++ b/src/graphics/opengl/gl33objectrenderer.cpp @@ -66,7 +66,7 @@ CGL33ObjectRenderer::CGL33ObjectRenderer(CGL33Device* device) glUseProgram(m_program); // Setup uniforms - auto identity = glm::identity(); + glm::mat4 identity(1.0f); m_projectionMatrix = glGetUniformLocation(m_program, "uni_ProjectionMatrix"); m_viewMatrix = glGetUniformLocation(m_program, "uni_ViewMatrix"); diff --git a/src/graphics/opengl/gl33renderers.cpp b/src/graphics/opengl/gl33renderers.cpp index 6302e83f..aba16aa7 100644 --- a/src/graphics/opengl/gl33renderers.cpp +++ b/src/graphics/opengl/gl33renderers.cpp @@ -262,7 +262,7 @@ CGL33TerrainRenderer::CGL33TerrainRenderer(CGL33Device* device) glUseProgram(m_program); // Setup uniforms - auto identity = glm::identity(); + glm::mat4 identity(1.0f); m_projectionMatrix = glGetUniformLocation(m_program, "uni_ProjectionMatrix"); m_viewMatrix = glGetUniformLocation(m_program, "uni_ViewMatrix"); @@ -517,7 +517,7 @@ CGL33ShadowRenderer::CGL33ShadowRenderer(CGL33Device* device) auto texture = glGetUniformLocation(m_program, "uni_Texture"); glUniform1i(texture, 0); - auto identity = glm::identity(); + glm::mat4 identity(1.0f); m_projectionMatrix = glGetUniformLocation(m_program, "uni_ProjectionMatrix"); m_viewMatrix = glGetUniformLocation(m_program, "uni_ViewMatrix");