This commit is contained in:
2025-10-24 18:22:15 +02:00
parent 5d1c6c6d99
commit 7959baeed9
3 changed files with 5 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
#include <SDL3/SDL.h>
#include <array>
#include <cstring>
#include <stdexcept>
#include <vector>
@@ -463,7 +464,7 @@ void OpenGLShader::render() {
// Restaurar estados OpenGL
glUseProgram(old_program);
glBindTexture(GL_TEXTURE_2D, old_texture);
if (was_texture_enabled == 0u) {
if (was_texture_enabled == 0U) {
glDisable(GL_TEXTURE_2D);
}
glBindVertexArray(old_vao);