History

Gut RenderContext

Zach Pomerantz committed 10 years ago

Commit f3265db1 parent e8b8f4d19 files · +117 −142Browse files

Showing the changes to interface/src/Application.cpp (1 of 19 files). Show all

Unified · Split

interface/src/Application.cpp+1−11
@@ -3768,22 +3768,12 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 3767 unmodified lines
37683768 PerformanceTimer perfTimer("EngineRun");
37693769
37703770 renderArgs->_viewFrustum = getDisplayViewFrustum();
3771− auto renderContext = _renderEngine->getRenderContext();
3772− renderContext->setArgs(renderArgs);
3773−
3774− bool occlusionStatus = Menu::getInstance()->isOptionChecked(MenuOption::DebugAmbientOcclusion);
3775− bool shadowStatus = Menu::getInstance()->isOptionChecked(MenuOption::DebugShadows);
3776− bool antialiasingStatus = Menu::getInstance()->isOptionChecked(MenuOption::Antialiasing);
3777− bool showOwnedStatus = Menu::getInstance()->isOptionChecked(MenuOption::PhysicsShowOwned);
3771+ _renderEngine->getRenderContext()->args = renderArgs;
37783772
37793773 // Before the deferred pass, let's try to use the render engine
37803774 myAvatar->startRenderRun();
37813775 _renderEngine->run();
37823776 myAvatar->endRenderRun();
3783−
3784− auto engineContext = _renderEngine->getRenderContext();
3785− //zzmp renderInterface->setJobGPUTimes(engineContext->getAmbientOcclusion().gpuTime);
3786−
37873777 }
37883778
37893779 activeRenderingThread = nullptr;