From 46ab7c6c8af19dcf537cab25aa468f4afc403940 Mon Sep 17 00:00:00 2001 From: Mel Date: Sun, 2 Oct 2022 00:02:16 +0200 Subject: Fix for macOS --- src/Window.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Window.cpp') diff --git a/src/Window.cpp b/src/Window.cpp index 8bb8580..54d70f9 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -8,6 +8,7 @@ Window::Window(const char *title, uint32_t width, uint32_t height) { glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); + glfwWindowHint(GLFW_DOUBLEBUFFER, GL_TRUE); m_window = glfwCreateWindow(width, height, title, nullptr, nullptr); if (m_window == nullptr) { -- cgit 1.4.1