Update GLTexture to not promote if we can't populate

This commit is contained in:
Ryan Huffman 2017-04-25 16:43:03 -07:00 committed by Atlante45
parent 382fe5d38d
commit 51ee058c0b

View file

@ -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();