()
| 21 | boolean hasInitedOnce = false; |
| 22 | |
| 23 | protected BaseScene() { |
| 24 | // its generally important that things get initialized as early as possible (and, furthermore, not in some random spot in the Scene update) |
| 25 | GraphicsContext.postQueueInAllContexts(() -> { |
| 26 | try (Util.ExceptionlessAutoClosable st = GraphicsContext.getContext().stateTracker.save()) { |
| 27 | GraphicsContext.put(this, setup()); |
| 28 | } |
| 29 | }); |
| 30 | |
| 31 | } |
| 32 | |
| 33 | @Override |
| 34 | public boolean perform(int pass) { |
nothing calls this directly
no test coverage detected