Fix resource texture memory usage tracking

This commit is contained in:
Brad Davis 2017-04-19 10:35:19 -07:00
parent 2a2102c7fe
commit bccc06d2fe

View file

@ -231,7 +231,7 @@ GL41VariableAllocationTexture::GL41VariableAllocationTexture(const std::weak_ptr
}
GL41VariableAllocationTexture::~GL41VariableAllocationTexture() {
Backend::updateTextureGPUMemoryUsage(0, _size);
Backend::updateTextureGPUMemoryUsage(_size, 0);
}
void GL41VariableAllocationTexture::allocateStorage(uint16 allocatedMip) {