aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
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/jogl/classes
parent9b52db212f8749b61e4cf775fe3244b94c5ae41c (diff)
Bug 1156: EGL-GBM: Fix Cleanup (Newt package relocation / hack default GBM)
Now: TYPE_EGL_GBM == ".egl.gbm"
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java b/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java
index 580a881d1..a2903e713 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLDisplayUtil.java
@@ -208,8 +208,8 @@ public class EGLDisplayUtil {
case NativeWindowFactory.TYPE_ANDROID:
platform = EGLExt.EGL_PLATFORM_ANDROID_KHR;
break;
- case NativeWindowFactory.TYPE_GBM:
- platform = EGLExt.EGL_PLATFORM_GBM_MESA;
+ case NativeWindowFactory.TYPE_EGL_GBM:
+ platform = EGLExt.EGL_PLATFORM_GBM_KHR; // same EGLExt.EGL_PLATFORM_GBM_MESA;
break;
case NativeWindowFactory.TYPE_WAYLAND:
// TODO
@@ -218,7 +218,7 @@ public class EGLDisplayUtil {
default:
platform = 0;
}
- if( 0 != platform && false ) {
+ if( 0 != platform ) {
eglDisplay = EGL.eglGetPlatformDisplay(platform, nativeDisplay_id, null);
}
else{
@@ -226,7 +226,8 @@ public class EGLDisplayUtil {
}
if(DEBUG) {
- System.err.println("EGLDisplayUtil.eglGetDisplay.X: eglDisplay("+EGLContext.toHexString(nativeDisplay_id)+"): "+
+ System.err.println("EGLDisplayUtil.eglGetDisplay.X: eglDisplay("+EGLContext.toHexString(nativeDisplay_id)+") @ "+
+ platform+"/"+nativeWindowType+": "+
EGLContext.toHexString(eglDisplay)+
", "+((EGL.EGL_NO_DISPLAY != eglDisplay)?"OK":"Failed")+", singletonEGLDisplay "+singletonEGLDisplay+" (use "+useSingletonEGLDisplay+")");
}