mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 06:23:35 +02:00
Fix duplicate low mip calculation in NetworkTexture
This commit is contained in:
parent
29641ba69a
commit
3184ddb29f
1 changed files with 0 additions and 8 deletions
|
@ -627,14 +627,6 @@ void NetworkTexture::maybeHandleFinishedInitialLoad() {
|
||||||
texture = textureCache->cacheTextureByHash(filename, texture);
|
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();
|
_lowestKnownPopulatedMip = texture->minAvailableMipLevel();
|
||||||
|
|
||||||
_ktxResourceState = WAITING_FOR_MIP_REQUEST;
|
_ktxResourceState = WAITING_FOR_MIP_REQUEST;
|
||||||
|
|
Loading…
Reference in a new issue