]> OCCT Git - occt-copy.git/commitdiff
0026479: Visualization, TKOpenGl - do not implicitly turn off stereo in OpenGl_Worksp...
authorkgv <kgv@opencascade.com>
Fri, 24 Jul 2015 11:05:35 +0000 (14:05 +0300)
committerabv <abv@opencascade.com>
Wed, 2 Sep 2015 11:38:32 +0000 (14:38 +0300)
src/OpenGl/OpenGl_Workspace.cxx

index d372d1233e76931583e0cb0f1fd9fb5c02497ca7..a021246010690f34285c13f133f4a0c6e618a9ca 100644 (file)
@@ -1356,13 +1356,8 @@ void OpenGl_Workspace::RedrawImmediate (const Graphic3d_CView& theCView,
   const Graphic3d_StereoMode aStereoMode = theCView.RenderParams.StereoMode;
   if (aProjectType == Graphic3d_Camera::Projection_Stereo)
   {
-    if (aFrameBuffer != NULL)
-    {
-      // implicitly switch to mono camera for image dump
-      aProjectType = Graphic3d_Camera::Projection_Perspective;
-    }
-    else if (myMainSceneFbos[0]->IsValid()
-         && !myMainSceneFbos[1]->IsValid())
+    if (myMainSceneFbos[0]->IsValid()
+    && !myMainSceneFbos[1]->IsValid())
     {
       aProjectType = Graphic3d_Camera::Projection_Perspective;
     }