diff options
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/awt')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/awt/Java2D.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/awt/Java2D.java b/src/jogl/classes/jogamp/opengl/awt/Java2D.java index 886cd9368..5735b875e 100644 --- a/src/jogl/classes/jogamp/opengl/awt/Java2D.java +++ b/src/jogl/classes/jogamp/opengl/awt/Java2D.java @@ -121,7 +121,7 @@ public class Java2D { if (DEBUG) { System.err.println("Checking for Java2D/OpenGL support"); } - Throwable catched = null; + Throwable caught = null; try { isHeadless = true; // Figure out whether the default graphics configuration is an @@ -269,7 +269,7 @@ public class Java2D { } } } catch (Exception e) { - catched = e; + caught = e; if (DEBUG) { System.err.println("Info: Disabling Java2D/JOGL integration"); } @@ -281,12 +281,12 @@ public class Java2D { // The AWT is running in headless mode, so the Java 2D / JOGL bridge is clearly disabled } catch (Error e) { // issued on OSX Java7: java.lang.Error: Could not find class: sun.awt.HeadlessGraphicsEnvironment - catched = e; + caught = e; } if (DEBUG) { - if(null != catched) { - catched.printStackTrace(); + if(null != caught) { + caught.printStackTrace(); } System.err.println("JOGL/Java2D OGL Pipeline active " + isOGLPipelineActive + ", resourceCompatible "+isOGLPipelineResourceCompatible); } |