Merge pull request #3674 from stojce/20143

CR for Job #20143 - BUG:  Rearview mirror rendering at wrong size
This commit is contained in:
AndrewMeadows 2014-10-28 15:02:25 -07:00
commit 4a9015c0e6

View file

@ -3175,7 +3175,7 @@ void Application::renderRearViewMirror(const QRect& region, bool billboard) {
} else {
// 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();
float ratio = QApplication::desktop()->windowHandle()->devicePixelRatio() * _renderResolutionScale;
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);