Merge pull request #3665 from stojce/20143

CR for Job #20143 - BUG:  Rearview mirror rendering at wrong size
This commit is contained in:
Philip Rosedale 2014-10-24 19:45:26 -07:00
commit 2dff75dac1

View file

@ -3105,7 +3105,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);