summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-18 04:37:18 +0100
committerSven Gothel <[email protected]>2023-01-18 04:37:18 +0100
commit1562a6d4c71b27378612306f825c2530c938f859 (patch)
tree187702ac5247f01b80bbf308941551a3756af12c /src
parent86460616271743970d1ffb2f64ee671e3deeb4cc (diff)
MacOSXCGLDrawableFactory.canCreateGLPbuffer(): Disabled for MacOS >= 12, here > 10.14.0 (Mojave)
Diffstat (limited to 'src')
-rw-r--r--src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXCGLDrawableFactory.java7
1 files changed, 5 insertions, 2 deletions
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;
}