From 9b22664c026b451646fccd81f6e6019574a8fb5a Mon Sep 17 00:00:00 2001 From: duv Date: Tue, 28 Jul 2015 16:17:57 +0300 Subject: [PATCH] 0026492: OpenGl_FrameBuffer does not releases itself correctly Logic related to myIsOwnBuffer flag in OpenGl_FrameBuffer was corrected. --- src/OpenGl/OpenGl_FrameBuffer.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/OpenGl/OpenGl_FrameBuffer.cxx b/src/OpenGl/OpenGl_FrameBuffer.cxx index 2e0c192c84..fc4c52b713 100644 --- a/src/OpenGl/OpenGl_FrameBuffer.cxx +++ b/src/OpenGl/OpenGl_FrameBuffer.cxx @@ -64,6 +64,8 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo // clean up previous state Release (theGlContext.operator->()); + myIsOwnBuffer = true; + // setup viewport sizes as is myVPSizeX = theViewportSizeX; myVPSizeY = theViewportSizeY; @@ -163,6 +165,8 @@ Standard_Boolean OpenGl_FrameBuffer::InitWithRB (const Handle(OpenGl_Context)& t // clean up previous state Release (theGlCtx.operator->()); + myIsOwnBuffer = true; + // setup viewport sizes as is myVPSizeX = theViewportSizeX; myVPSizeY = theViewportSizeY;