Fixed Image notified destroy when invalid
Former-commit-id: 5c14f5356809454d15fc3abdcea1111635f2a2cf
This commit is contained in:
parent
578523b4bf
commit
f2942e2b3f
|
|
@ -316,8 +316,11 @@ bool NzImage::Create(nzImageType type, nzPixelFormat format, unsigned int width,
|
|||
|
||||
void NzImage::Destroy()
|
||||
{
|
||||
if (m_sharedImage != &emptyImage)
|
||||
{
|
||||
NotifyDestroy();
|
||||
ReleaseImage();
|
||||
}
|
||||
}
|
||||
|
||||
bool NzImage::Fill(const NzColor& color)
|
||||
|
|
|
|||
Loading…
Reference in New Issue