mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 05:44:12 +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,
|
||||
_ktxMipRequest->getData().size(), reinterpret_cast<uint8_t*>(_ktxMipRequest->getData().data()));
|
||||
_lowestKnownPopulatedMip = _textureSource->getGPUTexture()->minAvailableMipLevel();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qWarning(networking) << "Trying to update mips but texture is null";
|
||||
}
|
||||
finishedLoading(true);
|
||||
_ktxResourceState = WAITING_FOR_MIP_REQUEST;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
finishedLoading(false);
|
||||
if (handleFailedRequest(_ktxMipRequest->getResult())) {
|
||||
_ktxResourceState = PENDING_MIP_REQUEST;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qWarning(networking) << "Failed to load mip: " << _url;
|
||||
_ktxResourceState = FAILED_TO_LOAD;
|
||||
}
|
||||
|
@ -497,8 +494,7 @@ void NetworkTexture::ktxMipRequestFinished() {
|
|||
if (_ktxResourceState == WAITING_FOR_MIP_REQUEST && _lowestRequestedMipLevel < _lowestKnownPopulatedMip) {
|
||||
startRequestForNextMipLevel();
|
||||
}
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
qWarning() << "Mip request finished in an unexpected state: " << _ktxResourceState;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue