diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-24 10:38:27 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-24 10:38:37 +0100 |
commit | 1397b0a9e6f46a93aabca498ba26ed74ee96ef0d (patch) | |
tree | 3b0cf43abeaaeae775b3d9298f63b9e036944bb1 /vcl | |
parent | 74279d773e28fdf3479502258ac64a1a06c3d3a1 (diff) |
Unchain OpenGLContext on all platforms
Change-Id: I679aae23d058a4d88fac0291cabe00629fd6de65
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 7df797043194..46fc097fe409 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -83,16 +83,6 @@ OpenGLContext::~OpenGLContext() wglDeleteContext( m_aGLWin.hRC ); ReleaseDC( m_aGLWin.hWnd, m_aGLWin.hDC ); } - ImplSVData* pSVData = ImplGetSVData(); - if( mpPrevContext ) - mpPrevContext->mpNextContext = mpNextContext; - else - pSVData->maGDIData.mpFirstContext = mpNextContext; - if( mpNextContext ) - mpNextContext->mpPrevContext = mpPrevContext; - else - pSVData->maGDIData.mpLastContext = mpPrevContext; - #elif defined( MACOSX ) OpenGLWrapper::resetCurrent(); #elif defined( IOS ) || defined( ANDROID ) @@ -113,6 +103,16 @@ OpenGLContext::~OpenGLContext() glXDestroyPixmap(m_aGLWin.dpy, m_aGLWin.glPix); } #endif + + ImplSVData* pSVData = ImplGetSVData(); + if( mpPrevContext ) + mpPrevContext->mpNextContext = mpNextContext; + else + pSVData->maGDIData.mpFirstContext = mpNextContext; + if( mpNextContext ) + mpNextContext->mpPrevContext = mpPrevContext; + else + pSVData->maGDIData.mpLastContext = mpPrevContext; } void OpenGLContext::AddRef() |