summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/com
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-11-21 09:32:57 +0100
committerSven Gothel <[email protected]>2019-11-21 09:32:57 +0100
commit92497251d85a7e7cf39230a014955dbbda0a49ea (patch)
tree1e43c4d203ed4d83f8a842f1a2c026b0c1d6ee28 /src/nativewindow/classes/com
parent9b52db212f8749b61e4cf775fe3244b94c5ae41c (diff)
Bug 1156: EGL-GBM: Fix Cleanup (Newt package relocation / hack default GBM)
Now: TYPE_EGL_GBM == ".egl.gbm"
Diffstat (limited to 'src/nativewindow/classes/com')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
index df1feefc7..23250db25 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/NativeWindowFactory.java
@@ -87,7 +87,7 @@ public abstract class NativeWindowFactory {
public static final String TYPE_WAYLAND = ".wayland";
/** GBM/EGL type, as retrieved with {@link #getNativeWindowType(boolean)}. String is canonical via {@link String#intern()}.*/
- public static final String TYPE_GBM = ".gbm";
+ public static final String TYPE_EGL_GBM = ".egl.gbm";
/** OpenKODE/EGL type, as retrieved with {@link #getNativeWindowType(boolean)}. String is canonical via {@link String#intern()}.*/
public static final String TYPE_EGL = ".egl";
@@ -167,24 +167,24 @@ public abstract class NativeWindowFactory {
case HPUX:
default:
if( BcmVCArtifacts.guessVCIVUsed() ) {
- return TYPE_BCM_VC_IV;
+ return TYPE_BCM_VC_IV;
}
- if(guessX()){
- return TYPE_X11;
+ if( guessX() ) {
+ return TYPE_X11;
}
- if(guessWayland()){
+ if( guessWayland() ) {
//TODO
return TYPE_WAYLAND;
}
- if(guessGBM()){
- return TYPE_GBM;
+ if( true || guessGBM() ) { // FIXME
+ return TYPE_EGL_GBM;
}
return TYPE_X11;
}
}
private static boolean guessX() {
- return System.getProperty("DISPLAY") !=null;
+ return System.getProperty("DISPLAY") != null;
}
private static boolean guessWayland() {