correct destructor for context

This commit is contained in:
ExMix 2013-12-25 17:13:24 +03:00 committed by Alex Zolotarev
parent 45e38ead89
commit 7ad770671b
2 changed files with 6 additions and 0 deletions

View file

@ -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)

View file

@ -9,6 +9,7 @@ class QtOGLContext: public OGLContext
{
public:
QtOGLContext(QWindow * surface, QtOGLContext * contextToShareWith);
~QtOGLContext();
virtual void present();
virtual void makeCurrent();