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