]> git.mxchange.org Git - flightgear.git/commitdiff
Disable on-screen statistics for the GUI camera
authortimoore <timoore>
Tue, 28 Oct 2008 12:10:01 +0000 (12:10 +0000)
committertimoore <timoore>
Tue, 28 Oct 2008 12:10:01 +0000 (12:10 +0000)
src/Main/CameraGroup.cxx

index b5298d637225a178ee8951305be22a4a18e1f300..4c00ab6db4e1509e9af91a313b7bcc1babca0c73 100644 (file)
@@ -265,8 +265,11 @@ CameraInfo* CameraGroup::buildGUICamera(const SGPropertyNode* cameraNode,
     camera->setProjectionResizePolicy(Camera::FIXED);
     camera->setReferenceFrame(Transform::ABSOLUTE_RF);
     const int cameraFlags = GUI;
-    return addCamera(cameraFlags, camera,
-                     Matrixd::identity(), Matrixd::identity(), false);
+    CameraInfo* result = addCamera(cameraFlags, camera, Matrixd::identity(),
+                                   Matrixd::identity(), false);
+    // Disable statistics for the GUI camera.
+    result->camera->setStats(0);
+    return result;
 }
 
 CameraGroup* CameraGroup::buildCameraGroup(osgViewer::Viewer* viewer,