mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:17:29 +02:00
Removing reported logspam from release builds
This commit is contained in:
parent
948ced81ce
commit
07ee350c09
1 changed files with 4 additions and 0 deletions
|
@ -2799,18 +2799,22 @@ QImage Application::renderAvatarBillboard() {
|
||||||
static QThread * activeRenderingThread = nullptr;
|
static QThread * activeRenderingThread = nullptr;
|
||||||
|
|
||||||
ViewFrustum* Application::getViewFrustum() {
|
ViewFrustum* Application::getViewFrustum() {
|
||||||
|
#ifdef DEBUG
|
||||||
if (QThread::currentThread() == activeRenderingThread) {
|
if (QThread::currentThread() == activeRenderingThread) {
|
||||||
// FIXME, should this be an assert?
|
// FIXME, should this be an assert?
|
||||||
qWarning() << "Calling Application::getViewFrustum() from the active rendering thread, did you mean Application::getDisplayViewFrustum()?";
|
qWarning() << "Calling Application::getViewFrustum() from the active rendering thread, did you mean Application::getDisplayViewFrustum()?";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return &_viewFrustum;
|
return &_viewFrustum;
|
||||||
}
|
}
|
||||||
|
|
||||||
ViewFrustum* Application::getDisplayViewFrustum() {
|
ViewFrustum* Application::getDisplayViewFrustum() {
|
||||||
|
#ifdef DEBUG
|
||||||
if (QThread::currentThread() != activeRenderingThread) {
|
if (QThread::currentThread() != activeRenderingThread) {
|
||||||
// FIXME, should this be an assert?
|
// FIXME, should this be an assert?
|
||||||
qWarning() << "Calling Application::getDisplayViewFrustum() from outside the active rendering thread or outside rendering, did you mean Application::getViewFrustum()?";
|
qWarning() << "Calling Application::getDisplayViewFrustum() from outside the active rendering thread or outside rendering, did you mean Application::getViewFrustum()?";
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return &_displayViewFrustum;
|
return &_displayViewFrustum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue