diff options
author | Sven Gothel <[email protected]> | 2010-11-16 10:30:04 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-16 10:30:04 +0100 |
commit | b3420aeb07f9bef1e4fe5f436524d0b3d66cfaa2 (patch) | |
tree | 9769dddcb7112cb7af352ceca7622829986f6f3d /src/nativewindow/classes | |
parent | c7e1451f3effc4580347e65b0d6a288c493d60df (diff) |
X11: Make X11 error handler quiet where we expect an X11 error, ie OpenGL 4 not available ..
Diffstat (limited to 'src/nativewindow/classes')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java b/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java index c449d8f86..f7f4828ca 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/impl/x11/X11Util.java @@ -77,11 +77,11 @@ public class X11Util { } } - public static void setX11ErrorHandler(boolean onoff) { + public static void setX11ErrorHandler(boolean onoff, boolean quiet) { synchronized(setX11ErrorHandlerLock) { if(onoff) { if(0==setX11ErrorHandlerRecCount) { - setX11ErrorHandler0(true); + setX11ErrorHandler0(true, quiet); } setX11ErrorHandlerRecCount++; } else { @@ -90,7 +90,7 @@ public class X11Util { } setX11ErrorHandlerRecCount--; if(0==setX11ErrorHandlerRecCount) { - setX11ErrorHandler0(false); + setX11ErrorHandler0(false, false); } } } @@ -595,5 +595,5 @@ public class X11Util { } private static native void initialize0(boolean firstUIActionOnProcess); - private static native void setX11ErrorHandler0(boolean onoff); + private static native void setX11ErrorHandler0(boolean onoff, boolean quiet); } |