From 2301954d62bb6e18406e1f25bad1a1a73bef2fcd Mon Sep 17 00:00:00 2001 From: Sam Cake Date: Mon, 22 May 2017 23:40:23 -0700 Subject: [PATCH] fixing the Populated metric --- 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 ec687ade9f..9ae98bc88b 100644 --- a/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl41/GL41BackendTexture.cpp @@ -285,7 +285,7 @@ GL41VariableAllocationTexture::GL41VariableAllocationTexture(const std::weak_ptr GL41VariableAllocationTexture::~GL41VariableAllocationTexture() { Backend::textureResourceCount.decrement(); Backend::textureResourceGPUMemSize.update(_size, 0); - Backend::textureResourcePopulatedGPUMemSize.update(_size, 0); + Backend::textureResourcePopulatedGPUMemSize.update(_populatedSize, 0); } void GL41VariableAllocationTexture::incrementPopulatedSize(Size delta) const {