forked from organicmaps/organicmaps
correct destructor for context
This commit is contained in:
parent
45e38ead89
commit
7ad770671b
2 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,11 @@ QtOGLContext::QtOGLContext(QWindow * surface, QtOGLContext * contextToShareWith)
|
|||
m_nativeContext->setShareContext(contextToShareWith->m_nativeContext);
|
||||
}
|
||||
|
||||
QtOGLContext::~QtOGLContext()
|
||||
{
|
||||
delete m_nativeContext;
|
||||
}
|
||||
|
||||
void QtOGLContext::makeCurrent()
|
||||
{
|
||||
if (!m_isContextCreated)
|
||||
|
|
|
@ -9,6 +9,7 @@ class QtOGLContext: public OGLContext
|
|||
{
|
||||
public:
|
||||
QtOGLContext(QWindow * surface, QtOGLContext * contextToShareWith);
|
||||
~QtOGLContext();
|
||||
|
||||
virtual void present();
|
||||
virtual void makeCurrent();
|
||||
|
|
Loading…
Add table
Reference in a new issue