Commit 8f32fdaac00e5fc12b364ef447e7b8a409d0b7b8

Thomas de Grivel 2023-12-05T19:47:30

remove glGenMipMaps

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/sdl2/sdl2_sprite.c b/libc3/window/sdl2/sdl2_sprite.c
index e16c3c9..b1aeb10 100644
--- a/libc3/window/sdl2/sdl2_sprite.c
+++ b/libc3/window/sdl2/sdl2_sprite.c
@@ -268,7 +268,7 @@ s_sdl2_sprite * sdl2_sprite_init (s_sdl2_sprite *sprite,
       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
       glTexImage2D(GL_TEXTURE_2D, 0, gl_format, sprite->w, sprite->h,
                    0, gl_format, gl_type, data);
-      glGenerateMipmap(GL_TEXTURE_2D);
+      //glGenerateMipmap(GL_TEXTURE_2D);
       gl_error = glGetError();
       if (gl_error != GL_NO_ERROR) {
         warnx("sdl2_sprite_init: %s: glTexImage2D: %s\n",