diff options
author | Sven Gothel <[email protected]> | 2013-04-24 21:49:40 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-24 21:49:40 +0200 |
commit | e2323aea92dc8d47f583002921287a06230b2d93 (patch) | |
tree | eed3644cc9d60b174a1d14adf3392e30b6646478 | |
parent | 8b70108d6fd04b2ab97cbd1b6729361b5ce98a6b (diff) |
Quirk DontCloseX11Display: Only detect w/ X11 NativeWindow System.
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLContextImpl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java index 883f90591..66e3efc4d 100644 --- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java @@ -1572,24 +1572,24 @@ public abstract class GLContextImpl extends GLContext { // // Quirk: DontCloseX11Display // - { + if( NativeWindowFactory.TYPE_X11 == NativeWindowFactory.getNativeWindowType(true) ) { final int quirk = GLRendererQuirks.DontCloseX11Display; if( glRendererLowerCase.contains("mesa") ) { if ( glRendererLowerCase.contains("x11") && vendorVersion.compareTo(Version80) < 0 ) { if(DEBUG) { - System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: Renderer=" + glRenderer + ", Version=[vendor " + vendorVersion + ", GL " + glVersion+"]"); + System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: X11 Renderer=" + glRenderer + ", Version=[vendor " + vendorVersion + ", GL " + glVersion+"]"); } quirks[i++] = quirk; } } else if( glRendererLowerCase.contains("ati technologies") || glRendererLowerCase.startsWith("ati ") ) { { if(DEBUG) { - System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: Renderer=" + glRenderer); + System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: X11 Renderer=" + glRenderer); } quirks[i++] = quirk; } - } else if( NativeWindowFactory.TYPE_X11 == NativeWindowFactory.getNativeWindowType(true) ) { - if( jogamp.nativewindow.x11.X11Util.getMarkAllDisplaysUnclosable() ) { + } else if( jogamp.nativewindow.x11.X11Util.getMarkAllDisplaysUnclosable() ) { + { if(DEBUG) { System.err.println("Quirk: "+GLRendererQuirks.toString(quirk)+": cause: X11Util Downstream"); } |