This commit is contained in:
ZappoMan 2013-12-28 12:51:50 -08:00
parent 32b2fb8f21
commit 6f2a1b9802
2 changed files with 6 additions and 9 deletions

View file

@ -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);

View file

@ -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>