Fix some OpenGL warnings

This commit is contained in:
2021-01-15 10:20:04 +01:00
parent d0a3b5e9a0
commit b2774e57de
13 changed files with 242 additions and 105 deletions

View File

@@ -14,7 +14,7 @@ void Mesh::draw(ShaderProgram *shaderProgram)
glBindTexture(GL_TEXTURE_2D, 0);
// Bind all textures in order to its texture unit
for (auto it = textures.begin(); it != textures.end(); it++) {
int i = it - textures.begin();
const int i = it - textures.begin();
uint8_t currentTextureType = (*it)->getTextureType();