Commit 97be56b194a89a35458a295e323d5bd7e7b23086

Thomas de Grivel 2023-12-08T07:11:23

fix lightning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/window/sdl2/demo/earth.c b/libc3/window/sdl2/demo/earth.c
index 578f6c4..7e173d3 100644
--- a/libc3/window/sdl2/demo/earth.c
+++ b/libc3/window/sdl2/demo/earth.c
@@ -115,5 +115,8 @@ bool earth_render (s_sequence *seq, s_window_sdl2 *window,
   gl_sphere_render_wireframe(sphere);
   */
   glPopMatrix();
+  glDisable(GL_TEXTURE_2D);
+  glDisable(GL_LIGHT0);
+  glDisable(GL_LIGHTING);
   return true;
 }