Fix duplicate low mip calculation in NetworkTexture

This commit is contained in:
Ryan Huffman 2017-04-26 11:00:16 -07:00 committed by Atlante45
parent 29641ba69a
commit 3184ddb29f

View file

@ -627,14 +627,6 @@ void NetworkTexture::maybeHandleFinishedInitialLoad() {
texture = textureCache->cacheTextureByHash(filename, texture);
}
_lowestKnownPopulatedMip = _originalKtxDescriptor->header.numberOfMipmapLevels;
for (uint16_t l = 0; l < 200; l++) {
if (texture->isStoredMipFaceAvailable(l)) {
_lowestKnownPopulatedMip = l;
break;
}
}
_lowestKnownPopulatedMip = texture->minAvailableMipLevel();
_ktxResourceState = WAITING_FOR_MIP_REQUEST;