Fix load priority for ktx loading

This commit is contained in:
Ryan Huffman 2017-04-24 10:51:54 -07:00 committed by Atlante45
parent 043c587395
commit e768b720ea

View file

@ -399,7 +399,7 @@ void NetworkTexture::startRequestForNextMipLevel() {
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST) {
_ktxResourceState = PENDING_MIP_REQUEST;
setLoadPriority(this, -_originalKtxDescriptor->header.numberOfMipmapLevels + _lowestKnownPopulatedMip);
setLoadPriority(this, -static_cast<int>(_originalKtxDescriptor->header.numberOfMipmapLevels) + _lowestKnownPopulatedMip);
init();
TextureCache::attemptRequest(_self);