From a3707a09ae7b5cc799962d1909af133a7c0c8917 Mon Sep 17 00:00:00 2001 From: stojce Date: Wed, 22 Oct 2014 09:42:55 +0200 Subject: [PATCH] fix mirror ratio on retina --- interface/src/Application.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 145222cd3c..306ca2f4b9 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3083,7 +3083,6 @@ void Application::renderRearViewMirror(const QRect& region, bool billboard) { // if not rendering the billboard, the region is in device independent coordinates; must convert to device QSize size = getTextureCache()->getFrameBufferSize(); float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio(); - ratio = size.height() / (float)_glWidget->getDeviceHeight(); int x = region.x() * ratio, y = region.y() * ratio, width = region.width() * ratio, height = region.height() * ratio; glViewport(x, size.height() - y - height, width, height); glScissor(x, size.height() - y - height, width, height);