New Oculus Magnification Windows
Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -655,7 +655,14 @@ void Application::paintGL() { · 654 unmodified lines | ||
| 655 | 655 | |
| 656 | 656 | { |
| 657 | 657 | PerformanceTimer perfTimer("paintGL/renderOverlay"); |
| 658 | − _applicationOverlay.renderOverlay(); | |
| 658 | + //If alpha is 1, we can render directly to the screen. | |
| 659 | + if (_applicationOverlay.getAlpha() == 1.0f) { | |
| 660 | + _applicationOverlay.renderOverlay(); | |
| 661 | + } else { | |
| 662 | + //Render to to texture so we can fade it | |
| 663 | + _applicationOverlay.renderOverlay(true); | |
| 664 | + _applicationOverlay.displayOverlayTexture(); | |
| 665 | + } | |
| 659 | 666 | } |
| 660 | 667 | } |
| 661 | 668 | |