mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0025133: TKOpenGl - Crash on closing a view containing presentations with capping
OpenGl_Element destruction and resource deallocation methods now accept a pointer to OpenGl_Context instead of a handle to avoid double deletion of the context.
This commit is contained in:
@@ -115,7 +115,7 @@ bool OpenGl_Texture::Create (const Handle(OpenGl_Context)& )
|
||||
// function : Release
|
||||
// purpose :
|
||||
// =======================================================================
|
||||
void OpenGl_Texture::Release (const OpenGl_Context* theGlCtx)
|
||||
void OpenGl_Texture::Release (OpenGl_Context* theGlCtx)
|
||||
{
|
||||
if (myTextureId == NO_TEXTURE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user