(Callable<T> o)
| 26 | } |
| 27 | |
| 28 | private static <T> T check2(Callable<T> o) { |
| 29 | check(GraphicsContext.getContext() != null); |
| 30 | try { |
| 31 | return o.call(); |
| 32 | } catch (Exception e) { |
| 33 | RuntimeException ex = new RuntimeException("exception thrown from OpenGL"); |
| 34 | ex.initCause(ex); |
| 35 | throw ex; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | |
| 40 | private static void check(boolean b) { |
no test coverage detected