Additional fix to new storage

This commit is contained in:
Brad Davis 2017-02-17 13:53:27 -08:00
parent 6882832abd
commit 6c03927b97

View file

@ -127,7 +127,9 @@ 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) {