From f1af72e1d93e8b928409c7bd8da0acb2b41cd345 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 24 Jan 2014 19:33:24 +0100 Subject: Bug 948 - Autodetect GLRendererQuirks.SingletonEGLDisplayOnly Refines commit fbe00e6f5dca8043b40dd96f096fecc9424e0cc3 Instead of querying driver artifacts (vendor, platform, version ..) we simply can autodetect this quirk by trying to get a second egl-display handle when initializing the EGLDrawablFactory's default device: EGL.eglGetDisplay(EGL.EGL_DEFAULT_DISPLAY) --- src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/com/jogamp/opengl') diff --git a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java index 57c5446f1..a643d81a9 100644 --- a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java +++ b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java @@ -272,15 +272,19 @@ public class GLRendererQuirks { *

* Reusing global EGL display works. *

+ *

+ * The quirk is autodetected within EGLDrawableFactory's initial default device setup! + *

+ *

+ * Appears on: *

- *

- * FIXME: Constrain driver version. *

*/ public static final int SingletonEGLDisplayOnly = 16; -- cgit v1.2.3