mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
@@ -59,7 +59,7 @@ public:
|
||||
const Standard_Integer theFontSize);
|
||||
|
||||
Standard_EXPORT virtual void Render (const Handle(OpenGl_Workspace)& theWorkspace) const;
|
||||
Standard_EXPORT virtual void Release (const Handle(OpenGl_Context)& theContext);
|
||||
Standard_EXPORT virtual void Release (OpenGl_Context* theContext);
|
||||
|
||||
public: //! @name methods for compatibility with layers
|
||||
|
||||
@@ -107,7 +107,7 @@ protected:
|
||||
private:
|
||||
|
||||
//! Release cached VBO resources
|
||||
void releaseVbos (const Handle(OpenGl_Context)& theCtx);
|
||||
void releaseVbos (OpenGl_Context* theCtx);
|
||||
|
||||
//! Setup matrix.
|
||||
void setupMatrix (const Handle(OpenGl_PrinterContext)& thePrintCtx,
|
||||
|
Reference in New Issue
Block a user