mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:23:54 +00:00
Do not destroy overlay if it was never created (e.g. due to an Ogre exception).
This commit is contained in:
parent
64e1594b41
commit
3b5cd286f6
1 changed files with 5 additions and 2 deletions
|
@ -362,8 +362,11 @@ CSVRender::PagedWorldspaceWidget::~PagedWorldspaceWidget()
|
|||
delete iter->second;
|
||||
}
|
||||
|
||||
removeRenderTargetListener(mOverlayMask);
|
||||
delete mOverlayMask;
|
||||
if(mOverlayMask)
|
||||
{
|
||||
removeRenderTargetListener(mOverlayMask);
|
||||
delete mOverlayMask;
|
||||
}
|
||||
}
|
||||
|
||||
void CSVRender::PagedWorldspaceWidget::useViewHint (const std::string& hint)
|
||||
|
|
Loading…
Reference in a new issue