mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-31 11:15:31 +03:00
0026492: OpenGl_FrameBuffer does not releases itself correctly
Logic related to myIsOwnBuffer flag in OpenGl_FrameBuffer was corrected.
This commit is contained in:
parent
e646e2af68
commit
9b22664c02
@ -64,6 +64,8 @@ Standard_Boolean OpenGl_FrameBuffer::Init (const Handle(OpenGl_Context)& theGlCo
|
|||||||
// clean up previous state
|
// clean up previous state
|
||||||
Release (theGlContext.operator->());
|
Release (theGlContext.operator->());
|
||||||
|
|
||||||
|
myIsOwnBuffer = true;
|
||||||
|
|
||||||
// setup viewport sizes as is
|
// setup viewport sizes as is
|
||||||
myVPSizeX = theViewportSizeX;
|
myVPSizeX = theViewportSizeX;
|
||||||
myVPSizeY = theViewportSizeY;
|
myVPSizeY = theViewportSizeY;
|
||||||
@ -163,6 +165,8 @@ Standard_Boolean OpenGl_FrameBuffer::InitWithRB (const Handle(OpenGl_Context)& t
|
|||||||
// clean up previous state
|
// clean up previous state
|
||||||
Release (theGlCtx.operator->());
|
Release (theGlCtx.operator->());
|
||||||
|
|
||||||
|
myIsOwnBuffer = true;
|
||||||
|
|
||||||
// setup viewport sizes as is
|
// setup viewport sizes as is
|
||||||
myVPSizeX = theViewportSizeX;
|
myVPSizeX = theViewportSizeX;
|
||||||
myVPSizeY = theViewportSizeY;
|
myVPSizeY = theViewportSizeY;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user