Skip to content

Commit

Permalink
bugfix make non-double buffer work for macos. closes #6612 (#6663)
Browse files Browse the repository at this point in the history
#changelog #osx
  • Loading branch information
ofTheo authored Jan 25, 2021
1 parent 3b790d2 commit 6a59943
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/openFrameworks/app/ofAppGLFWWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
#ifndef TARGET_OSX
glfwWindowHint(GLFW_AUX_BUFFERS, settings.doubleBuffering?1:0);
#else
glfwWindowHint(GLFW_DOUBLEBUFFER, settings.doubleBuffering?1:0);
#endif
glfwWindowHint(GLFW_SAMPLES, settings.numSamples);
glfwWindowHint(GLFW_RESIZABLE, settings.resizable);
Expand Down

0 comments on commit 6a59943

Please sign in to comment.