mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -1245,7 +1245,7 @@ Standard_Boolean OpenGl_ShaderProgram::Create (const Handle(OpenGl_Context)& the
|
||||
// function : Release
|
||||
// purpose : Destroys shader program
|
||||
// =======================================================================
|
||||
void OpenGl_ShaderProgram::Release (const OpenGl_Context* theCtx)
|
||||
void OpenGl_ShaderProgram::Release (OpenGl_Context* theCtx)
|
||||
{
|
||||
if (myProgramID == NO_PROGRAM)
|
||||
{
|
||||
|
Reference in New Issue
Block a user