Skip to content

Commit 4d3cb77

Browse files
committed
remove blocking event poll from window resize
1 parent cd149dd commit 4d3cb77

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/render/opengl/gl_engine_glfw.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,10 @@ void GLEngineGLFW::applyWindowSize() {
194194
// on some platform size changes are asynchonous, need to ensure it completes
195195
// we don't want to just retry until the resize has happened, because it could be impossible
196196
// TODO it seems like on X11 sometimes even this isn't enough?
197-
glfwWaitEvents();
197+
// glfwWaitEvents();
198+
// NSHARP: disabling this ^^^, on macOS it is causing the window to block until it gets focus,
199+
// and some googling makes me thing the underlying buffers should be resized immediately, which is
200+
// all we really care about
198201

199202
updateWindowSize(true);
200203
}

0 commit comments

Comments
 (0)