diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 22:17:58 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-11 07:57:31 +0100 |
commit | 2e512773095216acbac83e6fd71f6d0444263d70 (patch) | |
tree | bf17b3e97d8ee2448869b6bfa7ffce63f1397b72 /vcl/opengl | |
parent | f0f5f50243810762e27f1207b3c08b60ed888ee3 (diff) |
vcl: Reset context when the backend window is destroyed
Conflicts:
vcl/source/opengl/OpenGLContext.cxx
Change-Id: Ie2b93de8efe5ea56b0420adf23639c0153103385
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index 20ef2c434caf..61d8358b22d2 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -471,6 +471,8 @@ void OpenGLSalBitmap::makeCurrent() // TODO: make sure we can really use the last used context mpContext = pSVData->maGDIData.mpLastContext; + while( mpContext && !mpContext->isInitialized() ) + mpContext = mpContext->mpPrevContext; if( !mpContext ) mpContext = GetBitmapContext(); assert(mpContext && "Couldn't get an OpenGL context"); |