From cddd43891dbef1431ffda5e631dba9a8401d7976 Mon Sep 17 00:00:00 2001 From: Anthony Nicholls Date: Wed, 24 Jul 2024 14:51:42 +0100 Subject: [PATCH] OpenGL: Stop calling disableScreenUpdatesUntilFlush on macOS --- modules/juce_opengl/opengl/juce_OpenGLContext.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp index ea0fbfd2f8..8152d44bb0 100644 --- a/modules/juce_opengl/opengl/juce_OpenGLContext.cpp +++ b/modules/juce_opengl/opengl/juce_OpenGLContext.cpp @@ -1197,7 +1197,8 @@ private: auto& comp = *getComponent(); - #if JUCE_MAC + #if JUCE_MAC && (! defined (MAC_OS_VERSION_15_0) || MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_VERSION_15_0) + // According to a warning triggered on macOS 15 and above this doesn't do anything! [[(NSView*) comp.getWindowHandle() window] disableScreenUpdatesUntilFlush]; #endif