[Libreoffice-commits] core.git: vcl/opengl

Chris Sherlock chris.sherlock79 at gmail.com
Tue Jan 20 02:53:09 PST 2015


 vcl/opengl/gdiimpl.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 6cc84edfaf212fd202bc30002869d50f8ca7e53d
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Tue Jan 20 10:51:55 2015 +0000

    Revert "vcl: increment ref in OpenGLSalGraphicsImpl::AcquireContext"
    
    This reverts commit 3d580990643119cccb73f4f15d549863a6660aa6.
    
    Change-Id: Ib16fea0df909d41b2d51d5f3efe44dd4b3419352
    Reviewed-on: https://gerrit.libreoffice.org/14033
    Reviewed-by: Chris Sherlock <chris.sherlock79 at gmail.com>
    Tested-by: Chris Sherlock <chris.sherlock79 at gmail.com>

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 51374b9..bae5302 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -96,11 +96,7 @@ bool OpenGLSalGraphicsImpl::AcquireContext( )
     if( pContext )
         pContext->AddRef();
     else
-    {
         pContext = mbOffscreen ? GetDefaultContext() : CreateWinContext();
-        if (pContext)
-            pContext->AddRef();
-    }
 
     mpContext = pContext;
     return (mpContext != NULL);


More information about the Libreoffice-commits mailing list