mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +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);
|
||||
}
|
||||
|
||||
_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;
|
||||
|
|
Loading…
Reference in a new issue