From 239b3ab10b460da34c490a7e06a21c984e21ffb6 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 26 Nov 2021 20:21:12 +0000 Subject: Enable all Jason Turner recommended warnings --- gfx/gl/shader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/gl') diff --git a/gfx/gl/shader.cpp b/gfx/gl/shader.cpp index b97d6fc..14cf404 100644 --- a/gfx/gl/shader.cpp +++ b/gfx/gl/shader.cpp @@ -76,7 +76,7 @@ Shader::setUniform(const GLchar * uniform, glm::vec3 v) const void Shader::setModel(const Location & loc, Program pid) const { - auto & prog = programs[(int)pid]; + auto & prog = programs[static_cast(pid)]; glUseProgram(prog.m_program); if (prog.model_uniform >= 0) { const auto model {glm::translate(loc.pos) * rotate_ypr(loc.rot)}; -- cgit v1.2.3