From: Elias Fleckenstein Date: Fri, 29 Oct 2021 18:40:59 +0000 (+0200) Subject: Change minimum OpenGL version to 4.2.0 X-Git-Tag: 0.2~7^2 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fecea5e3c67fd1b62558e04964e1a14328ad19a9;p=dragonblocks_alpha.git Change minimum OpenGL version to 4.2.0 --- diff --git a/src/client/shader.c b/src/client/shader.c index 0f5b986..533ecc8 100644 --- a/src/client/shader.c +++ b/src/client/shader.c @@ -47,7 +47,7 @@ static GLuint compile_and_attach_shader(GLenum type, const char *path, const cha GLuint id = glCreateShader(type); - const char *version = "#version 460 core\n"; + const char *version = "#version 420 core\n"; const char *code_list[3] = { version, diff --git a/src/client/window.c b/src/client/window.c index 29cab14..c20a0a6 100644 --- a/src/client/window.c +++ b/src/client/window.c @@ -65,7 +65,7 @@ bool window_init(int width, int height) glfwWindowHint(GLFW_SAMPLES, 8); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); - glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); window.handle = glfwCreateWindow(width, height, "Dragonblocks", NULL, NULL);