mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:21:16 +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();
|
vartexture->demote();
|
||||||
_memoryPressureStateStale = true;
|
_memoryPressureStateStale = true;
|
||||||
} else if (MemoryPressureState::Undersubscribed == _memoryPressureState) {
|
} else if (MemoryPressureState::Undersubscribed == _memoryPressureState) {
|
||||||
if (!vartexture->canPromote()) {
|
if (!vartexture->canPromote() || !vartexture->canPopulate()) {
|
||||||
vartexture->populateTransferQueue();
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
vartexture->promote();
|
vartexture->promote();
|
||||||
|
|
Loading…
Reference in a new issue