17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-01 09:12:08 +01:00

refactor(sonar): make narrowing conversions explicit (cpp:S5276)

This commit is contained in:
jerrrrycho
2026-10-10 15:16:28 +02:00
parent d325a54756
commit ad32f1f840
53 changed files with 468 additions and 468 deletions

View File

@@ -67,7 +67,7 @@ void gl::vao::bind()
}
for (size_t i = params.size(); i < 5; i++)
glDisableVertexAttribArray(i);
glDisableVertexAttribArray(static_cast<GLuint>(i));
if (ebo)
ebo->bind(gl::buffer::ELEMENT_ARRAY_BUFFER);
@@ -84,6 +84,6 @@ void gl::vao::unbind()
}
else {
for (size_t i = 0; i < 4; i++)
glDisableVertexAttribArray(i);
glDisableVertexAttribArray(static_cast<GLuint>(i));
}
}