From 198b6cfa887b8c5127ab049d6ac91f320c54c7f5 Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Thu, 23 Jul 2015 06:17:08 -0700 Subject: [PATCH] Fix ray picking working intermittently Ray picking relies on the Application's viewFrustum which was being set to both the main camera and mirror camera for their respective pass while rendering. This makes sure the viewFrustum only ever holds the main camera. Application::_displayViewFrustum still gets updated to the current camera while rendering. --- interface/src/Application.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 9cbe7ed37c..a3e8e61fc4 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3395,9 +3395,6 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi renderArgs->_context->render(batch); } - bool updateViewFrustum = false; - loadViewFrustum(_mirrorCamera, _viewFrustum); - // render rear mirror view displaySide(renderArgs, _mirrorCamera, true, billboard);