ABRG-Models / morphologica

A library of supporting code for numerical modelling (JSON config, HDF5 data, Modern OpenGL visualization)
https://abrg-models.github.io/morphologica/
Apache License 2.0
260 stars 30 forks source link

Make it possible to releaseContext after morph::Visual construction #294

Closed sebjameswml closed 4 days ago

sebjameswml commented 5 days ago

Maybe need to set a callback in VisualTextModel so it can set context, like VisualModel can. When VisualTextModel is used to create a new text label, the OpenGL context must be in place. Can't close this PR until that is fixed.

sebjameswml commented 5 days ago

The second commit should sort it. All the examples ran for me

sebjameswml commented 4 days ago

Happy with this now - all seems safe.