mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 06:53:01 +02:00
Fix style in NetworkTexture
This commit is contained in:
parent
42da429414
commit
149f87e734
1 changed files with 4 additions and 8 deletions
|
@ -473,19 +473,16 @@ void NetworkTexture::ktxMipRequestFinished() {
|
||||||
texture->assignStoredMip(_ktxMipLevelRangeInFlight.first,
|
texture->assignStoredMip(_ktxMipLevelRangeInFlight.first,
|
||||||
_ktxMipRequest->getData().size(), reinterpret_cast<uint8_t*>(_ktxMipRequest->getData().data()));
|
_ktxMipRequest->getData().size(), reinterpret_cast<uint8_t*>(_ktxMipRequest->getData().data()));
|
||||||
_lowestKnownPopulatedMip = _textureSource->getGPUTexture()->minAvailableMipLevel();
|
_lowestKnownPopulatedMip = _textureSource->getGPUTexture()->minAvailableMipLevel();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
qWarning(networking) << "Trying to update mips but texture is null";
|
qWarning(networking) << "Trying to update mips but texture is null";
|
||||||
}
|
}
|
||||||
finishedLoading(true);
|
finishedLoading(true);
|
||||||
_ktxResourceState = WAITING_FOR_MIP_REQUEST;
|
_ktxResourceState = WAITING_FOR_MIP_REQUEST;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
finishedLoading(false);
|
finishedLoading(false);
|
||||||
if (handleFailedRequest(_ktxMipRequest->getResult())) {
|
if (handleFailedRequest(_ktxMipRequest->getResult())) {
|
||||||
_ktxResourceState = PENDING_MIP_REQUEST;
|
_ktxResourceState = PENDING_MIP_REQUEST;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
qWarning(networking) << "Failed to load mip: " << _url;
|
qWarning(networking) << "Failed to load mip: " << _url;
|
||||||
_ktxResourceState = FAILED_TO_LOAD;
|
_ktxResourceState = FAILED_TO_LOAD;
|
||||||
}
|
}
|
||||||
|
@ -497,8 +494,7 @@ void NetworkTexture::ktxMipRequestFinished() {
|
||||||
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST && _lowestRequestedMipLevel < _lowestKnownPopulatedMip) {
|
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST && _lowestRequestedMipLevel < _lowestKnownPopulatedMip) {
|
||||||
startRequestForNextMipLevel();
|
startRequestForNextMipLevel();
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
qWarning() << "Mip request finished in an unexpected state: " << _ktxResourceState;
|
qWarning() << "Mip request finished in an unexpected state: " << _ktxResourceState;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue