diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-01-20 21:49:30 +1100 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2015-01-20 21:49:50 +1100 |
commit | 3d580990643119cccb73f4f15d549863a6660aa6 (patch) | |
tree | 55cbd2acfffeebba0a5f993014221cde4653e190 /vcl/opengl | |
parent | c9e6b5854197dd33d4e20ed78aee8382472a0f01 (diff) |
vcl: increment ref in OpenGLSalGraphicsImpl::AcquireContext
Change-Id: Id8167dfe55eb6f7a83454f5eb7a3b5a96e252980
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index bae53023dba5..51374b9f9381 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -96,7 +96,11 @@ bool OpenGLSalGraphicsImpl::AcquireContext( ) if( pContext ) pContext->AddRef(); else + { pContext = mbOffscreen ? GetDefaultContext() : CreateWinContext(); + if (pContext) + pContext->AddRef(); + } mpContext = pContext; return (mpContext != NULL); |