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