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");