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