Skip to content

Commit

Permalink
GL3 backend: Set forward compatibility flag to fix running on macOS (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
NaLiJa authored Oct 18, 2023
1 parent 61606db commit 1d9b651
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Backends/RmlUi_Backend_GLFW_GL3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ bool Backend::Initialize(const char* name, int width, int height, bool allow_res
glfwWindowHint(GLFW_RESIZABLE, allow_resize ? GLFW_TRUE : GLFW_FALSE);
glfwWindowHint(GLFW_SCALE_TO_MONITOR, GLFW_TRUE);

glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);

GLFWwindow* window = glfwCreateWindow(width, height, name, nullptr, nullptr);
if (!window)
return false;
Expand Down

0 comments on commit 1d9b651

Please sign in to comment.