Core/Utility: Fix font crash
Happened when the atlas was resizing while updating the text drawer, the old invalid pointer was kept (now a dangling pointer). Former-commit-id: d50153f81f1f2bdd80cfdac9dcee85eb7c28c35e
This commit is contained in:
@@ -454,7 +454,7 @@ void NzFont::OnAtlasLayerChange(const NzAbstractAtlas* atlas, NzAbstractImage* o
|
||||
#endif
|
||||
|
||||
// Pour faciliter le travail des ressources qui nous écoutent
|
||||
OnFontAtlasLayerChanged(this);
|
||||
OnFontAtlasLayerChanged(this, oldLayer, newLayer);
|
||||
}
|
||||
|
||||
void NzFont::OnAtlasRelease(const NzAbstractAtlas* atlas)
|
||||
|
||||
Reference in New Issue
Block a user