17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-28 16:57:29 +01:00

refactor(sonar): make read-only local references and pointers const (cpp:S5350)

This commit is contained in:
jerrrrycho
2026-10-10 17:05:09 +02:00
parent 29e8a1befc
commit 693a817d5e
16 changed files with 38 additions and 38 deletions

View File

@@ -339,7 +339,7 @@ void gl::program::init()
for (auto [texturename, textureentry] : texture_conf)
{
shader::texture_entry &e = textureentry;
shader::texture_entry const &e = textureentry;
GLuint loc = glGetUniformLocation(*this, texturename.c_str());
glUniform1i(loc, static_cast<GLint>(e.id));
}