Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -3436,7 +3436,6 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi · 3435 unmodified lines | ||
| 3436 | 3436 | gpu::Vec4i viewport; |
| 3437 | 3437 | if (billboard) { |
| 3438 | 3438 | QSize size = DependencyManager::get<FramebufferCache>()->getFrameBufferSize(); |
| 3439 | − // viewport = gpu::Vec4i(region.x(), size.height() - region.y() - region.height(), region.width(), region.height()); | |
| 3440 | 3439 | viewport = gpu::Vec4i(0, 0, region.width(), region.height()); |
| 3441 | 3440 | } else { |
| 3442 | 3441 | // if not rendering the billboard, the region is in device independent coordinates; must convert to device |
| @@ -3446,7 +3445,6 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi · 3 unmodified lines | ||
| 3446 | 3445 | int y = region.y() * ratio; |
| 3447 | 3446 | int width = region.width() * ratio; |
| 3448 | 3447 | int height = region.height() * ratio; |
| 3449 | − // viewport = gpu::Vec4i(x, size.height() - y - height, width, height); | |
| 3450 | 3448 | viewport = gpu::Vec4i(0, 0, width, height); |
| 3451 | 3449 | } |
| 3452 | 3450 | renderArgs->_viewport = viewport; |