mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0026479: Visualization, TKOpenGl - do not implicitly turn off stereo in OpenGl_Workspace::RedrawImmediate()
This commit is contained in:
parent
d3fab23ba9
commit
c57360a7ce
@ -1356,13 +1356,8 @@ void OpenGl_Workspace::RedrawImmediate (const Graphic3d_CView& theCView,
|
|||||||
const Graphic3d_StereoMode aStereoMode = theCView.RenderParams.StereoMode;
|
const Graphic3d_StereoMode aStereoMode = theCView.RenderParams.StereoMode;
|
||||||
if (aProjectType == Graphic3d_Camera::Projection_Stereo)
|
if (aProjectType == Graphic3d_Camera::Projection_Stereo)
|
||||||
{
|
{
|
||||||
if (aFrameBuffer != NULL)
|
if (myMainSceneFbos[0]->IsValid()
|
||||||
{
|
&& !myMainSceneFbos[1]->IsValid())
|
||||||
// implicitly switch to mono camera for image dump
|
|
||||||
aProjectType = Graphic3d_Camera::Projection_Perspective;
|
|
||||||
}
|
|
||||||
else if (myMainSceneFbos[0]->IsValid()
|
|
||||||
&& !myMainSceneFbos[1]->IsValid())
|
|
||||||
{
|
{
|
||||||
aProjectType = Graphic3d_Camera::Projection_Perspective;
|
aProjectType = Graphic3d_Camera::Projection_Perspective;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user