mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Fix load priority for ktx loading
This commit is contained in:
parent
043c587395
commit
e768b720ea
1 changed files with 1 additions and 1 deletions
|
@ -399,7 +399,7 @@ 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, -_originalKtxDescriptor->header.numberOfMipmapLevels + _lowestKnownPopulatedMip);
|
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
|
||||||
|
|
||||||
init();
|
init();
|
||||||
TextureCache::attemptRequest(_self);
|
TextureCache::attemptRequest(_self);
|
||||||
|
|
Loading…
Reference in a new issue