History

strenghening the checks in GLBackend::downloadFramebuffer before actually calling the true glReadPixels

Sam Gateau committed 11 years ago

Commit d56b5f31 parent be9d9922 files · +20 −4Browse files

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

Unified · Split

interface/src/Application.cpp+0−2
@@ -3436,7 +3436,6 @@ void Application::renderRearViewMirror(RenderArgs* renderArgs, const QRect& regi · 3435 unmodified lines
34363436 gpu::Vec4i viewport;
34373437 if (billboard) {
34383438 QSize size = DependencyManager::get<FramebufferCache>()->getFrameBufferSize();
3439− // viewport = gpu::Vec4i(region.x(), size.height() - region.y() - region.height(), region.width(), region.height());
34403439 viewport = gpu::Vec4i(0, 0, region.width(), region.height());
34413440 } else {
34423441 // 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
34463445 int y = region.y() * ratio;
34473446 int width = region.width() * ratio;
34483447 int height = region.height() * ratio;
3449− // viewport = gpu::Vec4i(x, size.height() - y - height, width, height);
34503448 viewport = gpu::Vec4i(0, 0, width, height);
34513449 }
34523450 renderArgs->_viewport = viewport;