Fix priority being reset when requesting low mips

This commit is contained in:
Ryan Huffman 2017-04-26 11:34:27 -07:00 committed by Atlante45
parent 3184ddb29f
commit 0f461a2188

View file

@ -391,9 +391,9 @@ void NetworkTexture::startRequestForNextMipLevel() {
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST) {
_ktxResourceState = PENDING_MIP_REQUEST;
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
init();
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
_url.setFragment(QString::number(_lowestKnownPopulatedMip - 1));
TextureCache::attemptRequest(_self);
}
}