Cause preview tab to re-dock: drag it somewhere, close + reopen, etc.
paper is gone, drawing is gone, etc.
What was supposed to happen
No change - paper and drawing should still be there.
Additional contextMesh::unload() needs to be called on all meshes so that they are reloaded by the new gl render context.
Probably the easiest way is to store all meshes in a MeshPool and call MeshPool.unloadAll() in PreviewPanel.dispose().
Steps to make the bug happen
What was supposed to happen No change - paper and drawing should still be there.
Additional context
Mesh::unload()
needs to be called on all meshes so that they are reloaded by the new gl render context. Probably the easiest way is to store all meshes in a MeshPool and callMeshPool.unloadAll()
inPreviewPanel.dispose()
.