Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -589,8 +589,6 @@ void Application::paintGL() { · 588 unmodified lines | ||
| 589 | 589 | bool showWarnings = Menu::getInstance()->isOptionChecked(MenuOption::PipelineWarnings); |
| 590 | 590 | PerformanceWarning warn(showWarnings, "Application::paintGL()"); |
| 591 | 591 | |
| 592 | − const bool glowEnabled = Menu::getInstance()->isOptionChecked(MenuOption::EnableGlowEffect); | |
| 593 | − | |
| 594 | 592 | // Set the desired FBO texture size. If it hasn't changed, this does nothing. |
| 595 | 593 | // Otherwise, it must rebuild the FBOs |
| 596 | 594 | if (OculusManager::isConnected()) { |
| @@ -665,16 +663,11 @@ void Application::paintGL() { · 68 unmodified lines | ||
| 665 | 663 | updateShadowMap(); |
| 666 | 664 | } |
| 667 | 665 | |
| 668 | − //If we aren't using the glow shader, we have to clear the color and depth buffer | |
| 669 | − if (!glowEnabled) { | |
| 670 | − glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | |
| 671 | − } else if (OculusManager::isConnected()) { | |
| 666 | + if (OculusManager::isConnected()) { | |
| 672 | 667 | //Clear the color buffer to ensure that there isnt any residual color |
| 673 | 668 | //Left over from when OR was not connected. |
| 674 | 669 | glClear(GL_COLOR_BUFFER_BIT); |
| 675 | − } | |
| 676 | − | |
| 677 | − if (OculusManager::isConnected()) { | |
| 670 | + | |
| 678 | 671 | //When in mirror mode, use camera rotation. Otherwise, use body rotation |
| 679 | 672 | if (whichCamera.getMode() == CAMERA_MODE_MIRROR) { |
| 680 | 673 | OculusManager::display(whichCamera.getRotation(), whichCamera.getPosition(), whichCamera); |
| @@ -687,9 +680,7 @@ void Application::paintGL() { · 6 unmodified lines | ||
| 687 | 680 | TV3DManager::display(whichCamera); |
| 688 | 681 | |
| 689 | 682 | } else { |
| 690 | − if (glowEnabled) { | |
| 691 | − _glowEffect.prepare(); | |
| 692 | − } | |
| 683 | + _glowEffect.prepare(); | |
| 693 | 684 | |
| 694 | 685 | glMatrixMode(GL_MODELVIEW); |
| 695 | 686 | glPushMatrix(); |
| @@ -697,9 +688,7 @@ void Application::paintGL() { · 1 unmodified line | ||
| 697 | 688 | displaySide(whichCamera); |
| 698 | 689 | glPopMatrix(); |
| 699 | 690 | |
| 700 | − if (glowEnabled) { | |
| 701 | − _glowEffect.render(); | |
| 702 | − } | |
| 691 | + _glowEffect.render(); | |
| 703 | 692 | |
| 704 | 693 | if (Menu::getInstance()->isOptionChecked(MenuOption::Mirror)) { |
| 705 | 694 | renderRearViewMirror(_mirrorViewRect); |