0026025: Visualization, TKOpenGl - stereoscopic output does not work
[occt.git] / src / OpenGl / OpenGl_FrameBuffer.cxx
index 6667238..59f99c8 100644 (file)
@@ -99,6 +99,23 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
   return Standard_True;
 }
 
+// =======================================================================
+// function : Init
+// purpose  :
+// =======================================================================
+Standard_Boolean OpenGl_FrameBuffer::InitLazy (const Handle(OpenGl_Context)& theGlContext,
+                                               const GLsizei                 theViewportSizeX,
+                                               const GLsizei                 theViewportSizeY)
+{
+  if (myVPSizeX == theViewportSizeX
+   && myVPSizeY == theViewportSizeY)
+  {
+    return IsValid();
+  }
+
+  return Init (theGlContext, theViewportSizeX, theViewportSizeY);
+}
+
 // =======================================================================
 // function : InitWithRB
 // purpose  :