Merge branch 'smarter_textures' of https://github.com/highfidelity/hifi into texmex

This commit is contained in:
sam 2017-02-17 18:05:27 -08:00
commit b6f778633e

View file

@ -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) {