aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewercamera.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llviewercamera.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewercamera.cpp b/linden/indra/newview/llviewercamera.cpp
index 598046a..3a21ddf 100644
--- a/linden/indra/newview/llviewercamera.cpp
+++ b/linden/indra/newview/llviewercamera.cpp
@@ -4,6 +4,7 @@
4 * 4 *
5 * Copyright (c) 2002-2007, Linden Research, Inc. 5 * Copyright (c) 2002-2007, Linden Research, Inc.
6 * 6 *
7 * Second Life Viewer Source Code
7 * The source code in this file ("Source Code") is provided by Linden Lab 8 * The source code in this file ("Source Code") is provided by Linden Lab
8 * to you under the terms of the GNU General Public License, version 2.0 9 * to you under the terms of the GNU General Public License, version 2.0
9 * ("GPL"), unless you have obtained a separate licensing agreement 10 * ("GPL"), unless you have obtained a separate licensing agreement
@@ -96,6 +97,7 @@ void LLViewerCamera::updateCameraLocation(const LLVector3 &center,
96 97
97// Handy copies of last good GL matrices 98// Handy copies of last good GL matrices
98F64 gGLModelView[16]; 99F64 gGLModelView[16];
100F64 gGLProjection[16];
99S32 gGLViewport[4]; 101S32 gGLViewport[4];
100 102
101const LLMatrix4 &LLViewerCamera::getProjection() const 103const LLMatrix4 &LLViewerCamera::getProjection() const
@@ -250,6 +252,7 @@ void LLViewerCamera::setPerspective(BOOL for_selection,
250 aspect, 252 aspect,
251 z_near, 253 z_near,
252 z_far); 254 z_far);
255 glGetDoublev(GL_PROJECTION_MATRIX, gGLProjection);
253 glGetFloatv(GL_PROJECTION_MATRIX, (float*)&gProjectionMat); 256 glGetFloatv(GL_PROJECTION_MATRIX, (float*)&gProjectionMat);
254 257
255 glMatrixMode( GL_MODELVIEW ); 258 glMatrixMode( GL_MODELVIEW );