From 382fe5d38d9719bbe4c694922a097692c044f023 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 25 Apr 2017 16:31:42 -0700 Subject: [PATCH] Update gpu backend to only transfer if it can populate --- libraries/gpu-gl/src/gpu/gl/GLTexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp index ef938ecd6d..e0c6d86502 100644 --- a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp @@ -464,7 +464,7 @@ void GLVariableAllocationSupport::updateMemoryPressure() { newState = MemoryPressureState::Transfer; } else if (pressure > OVERSUBSCRIBED_PRESSURE_VALUE && canDemote) { newState = MemoryPressureState::Oversubscribed; - } else if (pressure < UNDERSUBSCRIBED_PRESSURE_VALUE && ((unallocated != 0 && canPromote) || canPopulate)) { + } else if (pressure < UNDERSUBSCRIBED_PRESSURE_VALUE && ((unallocated != 0 && canPromote) && canPopulate)) { newState = MemoryPressureState::Undersubscribed; }