summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-18 00:12:24 +0100
committerSven Gothel <[email protected]>2023-01-18 00:12:24 +0100
commit95c3d9162693c0e655bd8764faefd8126a3ec982 (patch)
treeb921babc94a44a1a55b1b9f3a0474fec04219849 /src/nativewindow/classes/jogamp
parent736a127297aa561ea5967acd66d61d494646dca3 (diff)
JAWTWindow: Constrain AppContextInfo creation where offscreen layer is supported (MacOS only)
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java
index a28ed8235..518abc491 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/jawt/JAWTUtil.java
@@ -122,6 +122,8 @@ public class JAWTUtil {
/**
* Returns true if this platform's JAWT implementation supports offscreen layer.
+ *
+ * Currently only JAWT on MacOS >= 10.6.4 supports offscreen rendering.
*/
public static boolean isOffscreenLayerSupported() {
return PlatformPropsImpl.OS_TYPE == Platform.OSType.MACOS && MacOS_10_6_4_COMPARE >= 0;
@@ -129,6 +131,8 @@ public class JAWTUtil {
/**
* Returns true if this platform's JAWT implementation requires using offscreen layer.
+ *
+ * Currently only JAWT on MacOS with JVM >= 1.7 supports offscreen rendering.
*/
public static boolean isOffscreenLayerRequired() {
return PlatformPropsImpl.OS_TYPE == Platform.OSType.MACOS && MacOS_JVM_1_7_COMPARE >= 0;