Commit 04d8fed8ffd595f997af83a943cb41c5929d85ca

Thomas de Grivel 2024-01-05T20:28:26

OpenGL 3.3

diff --git a/libc3/window/sdl2/gl_camera.c b/libc3/window/sdl2/gl_camera.c
index 0d040df..0021b76 100644
--- a/libc3/window/sdl2/gl_camera.c
+++ b/libc3/window/sdl2/gl_camera.c
@@ -15,7 +15,7 @@
 #include "gl_camera.h"
 #include "gl_matrix_4d.h"
 
-static const s8 * g_gl_camera_vertex_shader_src = "#version 460 core\n"
+static const s8 * g_gl_camera_vertex_shader_src = "#version 330 core\n"
 "layout (location = 0) in dvec3 aPos;\n"
 "uniform dmat4 matrix;\n"
 "\n"
diff --git a/libc3/window/sdl2/gl_ortho.c b/libc3/window/sdl2/gl_ortho.c
index f9c3870..8574398 100644
--- a/libc3/window/sdl2/gl_ortho.c
+++ b/libc3/window/sdl2/gl_ortho.c
@@ -15,7 +15,7 @@
 #include "gl_ortho.h"
 #include "gl_matrix_4d.h"
 
-static const s8 * g_gl_ortho_vertex_shader_src = "#version 460 core\n"
+static const s8 * g_gl_ortho_vertex_shader_src = "#version 330 core\n"
   "layout (location = 0) in dvec3 aPos;\n"
   "layout (location = 1) in dvec3 aNorm;\n"
   "layout (location = 2) in dvec2 aTexCoord;\n"