lower the min openGL version required 4 -> 3.3

This commit is contained in:
silverweed 2024-08-12 17:18:31 +02:00
parent f8c7c961ce
commit c10ebca4d6
2 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ The dependencies are:
Other than those, rntviewer depends on Dear ImGui and GLAD (both included in the source tree). 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
Building is done with `make`. Make sure to `source /path/to/root/bin/thisroot.sh` before running it. Building is done with `make`. Make sure to `source /path/to/root/bin/thisroot.sh` before running it.

View file

@ -25,8 +25,8 @@ GLFWwindow *init_glfw(i32 desired_win_width, i32 desired_win_height)
{ {
glfwSetErrorCallback(glfw_error_callback); glfwSetErrorCallback(glfw_error_callback);
glfwInit(); glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
// glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_DOUBLEBUFFER, GLFW_TRUE); glfwWindowHint(GLFW_DOUBLEBUFFER, GLFW_TRUE);
glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE); glfwWindowHint(GLFW_RESIZABLE, GLFW_TRUE);