From bccc06d2fe6f228e44b09934992279f4189c3122 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Wed, 19 Apr 2017 10:35:19 -0700 Subject: [PATCH] Fix resource texture memory usage tracking --- libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp b/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp index 1cb5a42ab9..1e02b3a385 100644 --- a/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp @@ -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) {