diff options
Diffstat (limited to 'vcl/opengl/salbmp.cxx')
-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"); |