mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Actually delete textures we're not using
This commit is contained in:
parent
2cd38064a5
commit
0f240d39b6
1 changed files with 5 additions and 1 deletions
|
@ -187,7 +187,11 @@ GLTexture::~GLTexture() {
|
|||
}
|
||||
}
|
||||
|
||||
Backend::decrementTextureGPUCount();
|
||||
if (_id) {
|
||||
glDeleteTextures(1, &_id);
|
||||
const_cast<GLuint&>(_id) = 0;
|
||||
Backend::decrementTextureGPUCount();
|
||||
}
|
||||
Backend::updateTextureGPUMemoryUsage(_size, 0);
|
||||
Backend::updateTextureGPUVirtualMemoryUsage(_virtualSize, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue