mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-29 14:00:49 +03:00
0026025: Visualization, TKOpenGl - stereoscopic output does not work
OpenGl_View::Render() - pass target FBO as parameter. OpenGl_Context - revise Read/Write buffers management logic, taking into account FBOs. Graphic3d_Camera::UpdateProjection() - setup LProjection and RProjection the same as MProjection in case of Projection_MonoLeftEye/Projection_MonoRightEye for API consistency.
This commit is contained in:
@@ -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 :
|
||||
|
Reference in New Issue
Block a user