From afee753570644a7de63c16a82a7cdf4debc767f4 Mon Sep 17 00:00:00 2001 From: Brad Davis Date: Mon, 22 May 2017 09:52:18 -0700 Subject: [PATCH] Prevent ping-ponging of texture quality when oversubscribed --- libraries/gpu-gl/src/gpu/gl/GLTexture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp index 84dc49deba..b61a3b82c4 100644 --- a/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp +++ b/libraries/gpu-gl/src/gpu/gl/GLTexture.cpp @@ -535,12 +535,14 @@ void GLVariableAllocationSupport::processWorkQueue(WorkQueue& workQueue) { vartexture->demote(); workQueue.pop(); addToWorkQueue(texture); + _memoryPressureStateStale = true; break; case MemoryPressureState::Undersubscribed: vartexture->promote(); workQueue.pop(); addToWorkQueue(texture); + _memoryPressureStateStale = true; break; case MemoryPressureState::Transfer: