mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02: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::updateTextureGPUMemoryUsage(_size, 0);
|
||||||
Backend::updateTextureGPUVirtualMemoryUsage(_virtualSize, 0);
|
Backend::updateTextureGPUVirtualMemoryUsage(_virtualSize, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue