Kaydet (Commit) 3d580990 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: increment ref in OpenGLSalGraphicsImpl::AcquireContext

Change-Id: Id8167dfe55eb6f7a83454f5eb7a3b5a96e252980
üst c9e6b585
...@@ -96,7 +96,11 @@ bool OpenGLSalGraphicsImpl::AcquireContext( ) ...@@ -96,7 +96,11 @@ bool OpenGLSalGraphicsImpl::AcquireContext( )
if( pContext ) if( pContext )
pContext->AddRef(); pContext->AddRef();
else else
{
pContext = mbOffscreen ? GetDefaultContext() : CreateWinContext(); pContext = mbOffscreen ? GetDefaultContext() : CreateWinContext();
if (pContext)
pContext->AddRef();
}
mpContext = pContext; mpContext = pContext;
return (mpContext != NULL); return (mpContext != NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment