mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
Merge pull request #4432 from gohai/opengl-runtime-exception
Be more verbose with drawExceptions with cause null
This commit is contained in:
@@ -445,6 +445,8 @@ public class PSurfaceJOGL implements PSurface {
|
||||
throw (RuntimeException)cause;
|
||||
} else if (cause instanceof UnsatisfiedLinkError) {
|
||||
throw new UnsatisfiedLinkError(cause.getMessage());
|
||||
} else if (cause == null) {
|
||||
throw new RuntimeException(drawException.getMessage());
|
||||
} else {
|
||||
throw new RuntimeException(cause);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user