mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:24:35 +02:00
Fix for invalid projection matrix on startup.
This commit is contained in:
parent
7008012492
commit
cd110d6048
1 changed files with 1 additions and 1 deletions
|
@ -786,7 +786,7 @@ void Application::updateProjectionMatrix(Camera& camera, bool updateViewFrustum)
|
||||||
// Tell our viewFrustum about this change, using the application camera
|
// Tell our viewFrustum about this change, using the application camera
|
||||||
if (updateViewFrustum) {
|
if (updateViewFrustum) {
|
||||||
loadViewFrustum(camera, _viewFrustum);
|
loadViewFrustum(camera, _viewFrustum);
|
||||||
computeOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
|
_viewFrustum.computeOffAxisFrustum(left, right, bottom, top, nearVal, farVal, nearClipPlane, farClipPlane);
|
||||||
|
|
||||||
// If we're in Display Frustum mode, then we want to use the slightly adjust near/far clip values of the
|
// If we're in Display Frustum mode, then we want to use the slightly adjust near/far clip values of the
|
||||||
// _viewFrustumOffsetCamera, so that we can see more of the application content in the application's frustum
|
// _viewFrustumOffsetCamera, so that we can see more of the application content in the application's frustum
|
||||||
|
|
Loading…
Reference in a new issue