Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2795,11 +2795,12 @@ QImage Application::renderAvatarBillboard() { · 2794 unmodified lines | ||
| 2795 | 2795 | return image; |
| 2796 | 2796 | } |
| 2797 | 2797 | |
| 2798 | − | |
| 2798 | +// FIXME, preprocessor guard this check to occur only in DEBUG builds | |
| 2799 | 2799 | static QThread * activeRenderingThread = nullptr; |
| 2800 | 2800 | |
| 2801 | 2801 | ViewFrustum* Application::getViewFrustum() { |
| 2802 | 2802 | if (QThread::currentThread() == activeRenderingThread) { |
| 2803 | + // FIXME, should this be an assert? | |
| 2803 | 2804 | qWarning() << "Calling Application::getViewFrustum() from the active rendering thread, did you mean Application::getDisplayViewFrustum()?"; |
| 2804 | 2805 | } |
| 2805 | 2806 | return &_viewFrustum; |
| @@ -2807,6 +2808,7 @@ ViewFrustum* Application::getViewFrustum() { · 1 unmodified line | ||
| 2807 | 2808 | |
| 2808 | 2809 | ViewFrustum* Application::getDisplayViewFrustum() { |
| 2809 | 2810 | if (QThread::currentThread() != activeRenderingThread) { |
| 2811 | + // FIXME, should this be an assert? | |
| 2810 | 2812 | qWarning() << "Calling Application::getDisplayViewFrustum() from outside the active rendering thread or outside rendering, did you mean Application::getViewFrustum()?"; |
| 2811 | 2813 | } |
| 2812 | 2814 | return &_displayViewFrustum; |