vcl/source/opengl/OpenGLContext.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-)
New commits: commit 1397b0a9e6f46a93aabca498ba26ed74ee96ef0d Author: Stephan Bergmann <sberg...@redhat.com> Date: Mon Nov 24 10:38:27 2014 +0100 Unchain OpenGLContext on all platforms Change-Id: I679aae23d058a4d88fac0291cabe00629fd6de65 diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 7df7970..46fc097 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() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits