mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 09:23:17 +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,7 +127,9 @@ Texture::Pixels::Pixels(const Element& format, Size size, const Byte* bytes) :
|
|||
}
|
||||
|
||||
Texture::Pixels::~Pixels() {
|
||||
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
||||
if (_storage) {
|
||||
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
|
||||
}
|
||||
}
|
||||
|
||||
void Texture::Storage::assignTexture(Texture* texture) {
|
||||
|
|
Loading…
Reference in a new issue