From 1562a6d4c71b27378612306f825c2530c938f859 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 18 Jan 2023 04:37:18 +0100 Subject: MacOSXCGLDrawableFactory.canCreateGLPbuffer(): Disabled for MacOS >= 12, here > 10.14.0 (Mojave) --- .../classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/macosx') diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java index 871067f4c..97c595955 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java @@ -71,8 +71,10 @@ import jogamp.opengl.GLDrawableImpl; import jogamp.opengl.GLDynamicLookupHelper; import jogamp.opengl.GLGraphicsConfigurationUtil; import jogamp.opengl.SharedResourceRunner; +import jogamp.opengl.GLContextImpl.MacOSVersion; import com.jogamp.common.nio.Buffers; +import com.jogamp.common.os.Platform; import com.jogamp.common.util.ReflectionUtil; import com.jogamp.nativewindow.GenericUpstreamSurfacelessHook; import com.jogamp.nativewindow.MutableGraphicsConfiguration; @@ -393,8 +395,9 @@ public class MacOSXCGLDrawableFactory extends GLDrawableFactoryImpl { @Override public boolean canCreateGLPbuffer(final AbstractGraphicsDevice device, final GLProfile glp) { if( glp.isGL2() ) { - // OSX only supports pbuffer w/ compatible, non-core, context. - return true; + // OSX only supports pbuffer w/ compatible, non-core, context + // on MacMacOS < 12 (my setup) or <= 10.14.0 (Mojave) (FIXME) + return Platform.getOSVersionNumber().compareTo(MacOSVersion.Mojave) <= 0; } else { return false; } -- cgit v1.2.3