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,8 +127,10 @@ Texture::Pixels::Pixels(const Element& format, Size size, const Byte* bytes) :
}
Texture::Pixels::~Pixels() {
if (_storage) {
Texture::updateTextureCPUMemoryUsage(_storage->size(), 0);
}
}
void Texture::Storage::assignTexture(Texture* texture) {
_texture = texture;