mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 22:44:15 +02:00
cleanup
This commit is contained in:
parent
32b2fb8f21
commit
6f2a1b9802
2 changed files with 6 additions and 9 deletions
|
@ -478,13 +478,10 @@ void Application::paintGL() {
|
|||
_mirrorCamera.update(1.0f/_fps);
|
||||
|
||||
// set the bounds of rear mirror view
|
||||
float mirrorX = _mirrorViewRect.x();
|
||||
float mirrorY = _glWidget->height() - _mirrorViewRect.y() - _mirrorViewRect.height();
|
||||
float mirrorW = _mirrorViewRect.width();
|
||||
float mirrorH = _mirrorViewRect.height();
|
||||
|
||||
glViewport(mirrorX, mirrorY, mirrorW, mirrorH);
|
||||
glScissor(mirrorX, mirrorY, mirrorW, mirrorH);
|
||||
glViewport(_mirrorViewRect.x(), _glWidget->height() - _mirrorViewRect.y() - _mirrorViewRect.height(),
|
||||
_mirrorViewRect.width(), _mirrorViewRect.height());
|
||||
glScissor(_mirrorViewRect.x(), _glWidget->height() - _mirrorViewRect.y() - _mirrorViewRect.height(),
|
||||
_mirrorViewRect.width(), _mirrorViewRect.height());
|
||||
bool updateViewFrustum = false;
|
||||
updateProjectionMatrix(_mirrorCamera, updateViewFrustum);
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// TV3DManager.cpp
|
||||
// hifi
|
||||
//
|
||||
// Created by Stephen Birarda on 5/9/13.
|
||||
// Copyright (c) 2012 High Fidelity, Inc. All rights reserved.
|
||||
// Created by Brad Hefta-Gaub on 12/24/13.
|
||||
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
||||
//
|
||||
|
||||
#include <QOpenGLFramebufferObject>
|
||||
|
|
Loading…
Reference in a new issue