Fixed crash when resources in use by the Renderer are released
Former-commit-id: 98eedb556f0387f0a5c1cafde2fc74645d1d0457
This commit is contained in:
@@ -164,6 +164,7 @@ NzTexture::NzTexture(const NzImage& image)
|
||||
NzTexture::~NzTexture()
|
||||
{
|
||||
Destroy();
|
||||
NzRenderer::OnTextureReleased(this);
|
||||
}
|
||||
|
||||
bool NzTexture::Create(nzImageType type, nzPixelFormat format, unsigned int width, unsigned int height, unsigned int depth, nzUInt8 levelCount)
|
||||
|
||||
Reference in New Issue
Block a user