From: kgv Date: Fri, 24 Jul 2015 11:05:35 +0000 (+0300) Subject: 0026479: Visualization, TKOpenGl - do not implicitly turn off stereo in OpenGl_Worksp... X-Git-Tag: V6_9_1_beta~46 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c57360a7cecc82eeebece88ce7f83984648f82e6;p=occt-copy.git 0026479: Visualization, TKOpenGl - do not implicitly turn off stereo in OpenGl_Workspace::RedrawImmediate() --- diff --git a/src/OpenGl/OpenGl_Workspace.cxx b/src/OpenGl/OpenGl_Workspace.cxx index d372d1233e..a021246010 100644 --- a/src/OpenGl/OpenGl_Workspace.cxx +++ b/src/OpenGl/OpenGl_Workspace.cxx @@ -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; }