Do not destroy overlay if it was never created (e.g. due to an Ogre exception).

report
cc9cii 10 years ago
parent 64e1594b41
commit 3b5cd286f6

@ -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…
Cancel
Save