mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +02:00
If not in DEBUG then do not call qcDebug (in NetworkTexture::ktxInitialDataRequestFinished)
This commit is contained in:
parent
ad191defb8
commit
10ce785ad7
1 changed files with 4 additions and 0 deletions
|
@ -642,8 +642,12 @@ void NetworkTexture::ktxInitialDataRequestFinished() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result == ResourceRequest::Success) {
|
if (result == ResourceRequest::Success) {
|
||||||
|
|
||||||
|
// This is an expensive operation that we do not want in release.
|
||||||
|
#ifdef DEBUG
|
||||||
auto extraInfo = _url == _activeUrl ? "" : QString(", %1").arg(_activeUrl.toDisplayString());
|
auto extraInfo = _url == _activeUrl ? "" : QString(", %1").arg(_activeUrl.toDisplayString());
|
||||||
qCDebug(networking).noquote() << QString("Request finished for %1%2").arg(_url.toDisplayString(), extraInfo);
|
qCDebug(networking).noquote() << QString("Request finished for %1%2").arg(_url.toDisplayString(), extraInfo);
|
||||||
|
#endif
|
||||||
|
|
||||||
_ktxHeaderData = _ktxHeaderRequest->getData();
|
_ktxHeaderData = _ktxHeaderRequest->getData();
|
||||||
_ktxHighMipData = _ktxMipRequest->getData();
|
_ktxHighMipData = _ktxMipRequest->getData();
|
||||||
|
|
Loading…
Reference in a new issue