diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index dca6bd490..964efa98a 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -1011,10 +1011,9 @@ public class PGL { animator.requestDisplay(); } } catch (GLException e) { - // Unwrap GLException so that only the causing exception - // is shown. + // Unwrap GLException so that only the causing exception is shown. Throwable tr = e.getCause(); - throw (RuntimeException)tr; + throw new RuntimeException(tr); } } }