mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 21:02:17 +02:00
Update GLTexture to not promote if we can't populate
This commit is contained in:
parent
382fe5d38d
commit
51ee058c0b
1 changed files with 1 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue