Commit 1a15b4f0af1f45e73deef21ca1867c444818aedb

Thomas de Grivel 2023-12-22T12:10:24

opengl

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/window/sdl2/sdl2_sprite.c b/libc3/window/sdl2/sdl2_sprite.c
index 55d17dd..ba13ab0 100644
--- a/libc3/window/sdl2/sdl2_sprite.c
+++ b/libc3/window/sdl2/sdl2_sprite.c
@@ -328,6 +328,7 @@ s_sdl2_sprite * sdl2_sprite_init (s_sdl2_sprite *sprite,
     }
     y++;
   }
+  glBindTexture(GL_TEXTURE_2D, 0);
   free(data);
   free(png_data);
   free(png_row);