mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 11:14:01 +02:00
Additional fix to new storage
This commit is contained in:
parent
6882832abd
commit
6c03927b97
1 changed files with 3 additions and 1 deletions
|
@ -127,8 +127,10 @@ Texture::Pixels::Pixels(const Element& format, Size size, const Byte* bytes) :
|
||||||
}
|
}
|
||||||
|
|
||||||
Texture::Pixels::~Pixels() {
|
Texture::Pixels::~Pixels() {
|
||||||
|
if (_storage) {
|
||||||
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void Texture::Storage::assignTexture(Texture* texture) {
|
void Texture::Storage::assignTexture(Texture* texture) {
|
||||||
_texture = texture;
|
_texture = texture;
|
||||||
|
|
Loading…
Reference in a new issue