Fix lower mips not being downloaded after initial mips

This commit is contained in:
Ryan Huffman 2017-04-25 21:12:14 -07:00 committed by Atlante45
parent 4d48cb2e80
commit 9505bf746c

View file

@ -635,8 +635,6 @@ void NetworkTexture::maybeHandleFinishedInitialLoad() {
// images with the same hash being loaded concurrently. Only one of them will make it into the cache by hash first and will // images with the same hash being loaded concurrently. Only one of them will make it into the cache by hash first and will
// be the winner // be the winner
texture = textureCache->cacheTextureByHash(filename, texture); texture = textureCache->cacheTextureByHash(filename, texture);
} }
_lowestKnownPopulatedMip = _originalKtxDescriptor->header.numberOfMipmapLevels; _lowestKnownPopulatedMip = _originalKtxDescriptor->header.numberOfMipmapLevels;
@ -660,6 +658,7 @@ void NetworkTexture::maybeHandleFinishedInitialLoad() {
_ktxMipRequest->deleteLater(); _ktxMipRequest->deleteLater();
_ktxMipRequest = nullptr; _ktxMipRequest = nullptr;
} }
startRequestForNextMipLevel();
} }
} }