Change minimum OpenGL version to 4.2.0

master
Elias Fleckenstein 2021-10-29 20:40:59 +02:00
parent dc0b4d70ee
commit fecea5e3c6
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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);