Closed EGjoni closed 2 years ago
This issue still seems to exist
Now fixed in the standalone JavaFX library for 4.0 beta 4: https://github.com/processing/processing4-javafx/commit/f7b8c29ccf32c42e645af4894a9999ad9252f117
JavaFX development is now taking place here: https://github.com/processing/processing4-javafx
In 3.2.1, when attempting to draw into an FX2D PGraphics context which is not the main context as shown in this code:
The following error is thrown:
In contrast, if the offscreen PGraphics context is specified as JAVA2D, things work as expected:
Additionally (and I'm not sure if this should be filed as a separate issue), using an FX2D context as an offscreen buffer when the main context is anything other than FX2D results in a null pointer exception on the first line calling any of the FX2D context's draw functions. However, the IDE provides no stack trace when this happens.
`