diff options
author | Sven Gothel <[email protected]> | 2019-11-22 17:11:49 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-11-22 17:11:49 +0100 |
commit | 29ec5eeccbe683e79106a44646c4ad99326609fa (patch) | |
tree | a253cb6679c47f3300d844a899fa9cbf3c5c4f16 | |
parent | e674f4fa0e795bd67335025123f9af727d856f7d (diff) |
Bug 1156: GBM: FIXME: Remove scanning for desktop-GL via EGL, see commit e674f4fa0e795bd67335025123f9af727d856f7d
-rw-r--r-- | src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java index fed02f34e..8c9656354 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java @@ -84,6 +84,7 @@ import com.jogamp.nativewindow.GenericUpstreamSurfacelessHook; import com.jogamp.nativewindow.egl.EGLGraphicsDevice; import com.jogamp.opengl.GLRendererQuirks; import com.jogamp.opengl.egl.EGL; +import com.jogamp.opengl.egl.EGLExt; public class EGLDrawableFactory extends GLDrawableFactoryImpl { protected static final boolean DEBUG = GLDrawableFactoryImpl.DEBUG; // allow package access @@ -792,6 +793,7 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl { } } else if( adevice != defaultDevice ) { // Create a true mapping of given device to EGL + // FIXME !!!! EGL-GBM upstreamSurface = desktopFactory.createDummySurface(adevice, reqCapsAny, null, 64, 64); // X11, WGL, .. dummy window if(null != upstreamSurface) { upstreamSurface.createNotify(); @@ -912,9 +914,12 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl { * that even though initial OpenGL context can be created w/o 'EGL_KHR_create_context', * switching the API via 'eglBindAPI(EGL_OpenGL_API)' the latter 'eglCreateContext(..)' fails w/ EGL_BAD_ACCESS. * Hence we require both: OpenGL API support _and_ 'EGL_KHR_create_context'. + * + * Using EGL_GBM, i.e. EGLExt.EGL_PLATFORM_GBM_KHR, we get an unsatisfied linkage error using desktop GL !! */ return null != eglGLnDynamicLookupHelper && - defaultDeviceEGLFeatures.hasGLAPI && defaultDeviceEGLFeatures.hasKHRCreateContext; + defaultDeviceEGLFeatures.hasGLAPI && defaultDeviceEGLFeatures.hasKHRCreateContext && + false; // hack } /** |