Prevent ping-ponging of texture quality when oversubscribed

This commit is contained in:
Brad Davis 2017-05-22 09:52:18 -07:00
parent 9a4b624029
commit afee753570

View file

@ -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: