]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/jpg-httpd.cxx
- rename fgcommand "set-mouse" to "set-cursor"
[flightgear.git] / src / Network / jpg-httpd.cxx
index 9c83d3446686a731377e5772bbedef14ca2b8409..7ff7341bffa8a852c01e6404164136698a192585 100644 (file)
@@ -108,14 +108,9 @@ void HttpdImageChannel :: foundTerminator( void ) {
 
         double left, right, bottom, top, zNear, zFar;
        osgViewer::Viewer* viewer = globals->get_renderer()->getViewer();
-       if (viewer)
-           viewer->getCamera()->getProjectionMatrixAsFrustum(left, right,
-                                                             bottom, top,
-                                                             zNear, zFar);
-       else
-           sceneView->getCamera()->getProjectionMatrixAsFrustum(left, right,
-                                                                bottom, top,
-                                                                zNear, zFar);
+        viewer->getCamera()->getProjectionMatrixAsFrustum(left, right,
+                                                          bottom, top,
+                                                          zNear, zFar);
         JpgFactory->setFrustum( left, right, bottom, top, zNear, zFar );
 
         nImageLen  = JpgFactory -> render();