From 51ee058c0b7b8d3ff2b37ec9c9278eab8e40a6e2 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Tue, 25 Apr 2017 16:43:03 -0700 Subject: [PATCH] Update GLTexture to not promote if we can't populate --- libraries/gpu-gl/src/gpu/gl/GLTexture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp index e0c6d86502..fceed7c2eb 100644 --- a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp @@ -521,8 +521,7 @@ void GLVariableAllocationSupport::processWorkQueues() { vartexture->demote(); _memoryPressureStateStale = true; } else if (MemoryPressureState::Undersubscribed == _memoryPressureState) { - if (!vartexture->canPromote()) { - vartexture->populateTransferQueue(); + if (!vartexture->canPromote() || !vartexture->canPopulate()) { continue; } vartexture->promote();