From c10ebca4d6de4e4700f6a119ae48e9eb570e9a6e Mon Sep 17 00:00:00 2001 From: silverweed Date: Mon, 12 Aug 2024 17:18:31 +0200 Subject: [PATCH] lower the min openGL version required 4 -> 3.3 --- README.md | 2 +- src/mainloop.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b8fa221..37fbac9 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The dependencies are: Other than those, rntviewer depends on Dear ImGui and GLAD (both included in the source tree). -The machine must support OpenGL 4. +The machine must support OpenGL 3.3 or higher. ### Building Building is done with `make`. Make sure to `source /path/to/root/bin/thisroot.sh` before running it. diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 14e2b6b..61ab6b0 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -25,8 +25,8 @@ GLFWwindow *init_glfw(i32 desired_win_width, i32 desired_win_height) { glfwSetErrorCallback(glfw_error_callback); glfwInit(); - glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); - // glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_DOUBLEBUFFER, GLFW_TRUE); glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);