1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0028741: Visualization, TKOpenGl - eliminate GL errors within Core Profile in OpenGl_View::copyBackToFront()

This commit is contained in:
akz
2017-05-11 13:52:18 +03:00
committed by bugmaster
parent ff6665dc50
commit a0b49de498
6 changed files with 119 additions and 39 deletions

View File

@@ -133,7 +133,9 @@ namespace
// purpose :
// =======================================================================
OpenGl_FrameBuffer::OpenGl_FrameBuffer()
: myVPSizeX (0),
: myInitVPSizeX (0),
myInitVPSizeY (0),
myVPSizeX (0),
myVPSizeY (0),
myNbSamples (0),
myDepthFormat (GL_DEPTH24_STENCIL8),
@@ -326,6 +328,8 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
myDepthFormat = theDepthFormat;
myNbSamples = theNbSamples;
myInitVPSizeX = theSizeX;
myInitVPSizeY = theSizeY;
if (theGlContext->arbFBO == NULL)
{
return Standard_False;
@@ -535,6 +539,8 @@ Standard_Boolean OpenGl_FrameBuffer::InitWithRB (const Handle(OpenGl_Context)& t
myDepthFormat = theDepthFormat;
myNbSamples = 0;
myInitVPSizeX = theSizeX;
myInitVPSizeY = theSizeY;
if (theGlCtx->arbFBO == NULL)
{
return Standard_False;