mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
Merge pull request #3674 from stojce/20143
CR for Job #20143 - BUG: Rearview mirror rendering at wrong size
This commit is contained in:
commit
4a9015c0e6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue