mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:57:59 +02:00
Fix priority being reset when requesting low mips
This commit is contained in:
parent
3184ddb29f
commit
0f461a2188
1 changed files with 2 additions and 2 deletions
|
@ -391,9 +391,9 @@ void NetworkTexture::startRequestForNextMipLevel() {
|
||||||
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST) {
|
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST) {
|
||||||
_ktxResourceState = PENDING_MIP_REQUEST;
|
_ktxResourceState = PENDING_MIP_REQUEST;
|
||||||
|
|
||||||
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
|
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
|
||||||
|
_url.setFragment(QString::number(_lowestKnownPopulatedMip - 1));
|
||||||
TextureCache::attemptRequest(_self);
|
TextureCache::attemptRequest(_self);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue