summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-01-20 10:51:55 +0000
committerChris Sherlock <chris.sherlock79@gmail.com>2015-01-20 10:52:34 +0000
commit6cc84edfaf212fd202bc30002869d50f8ca7e53d (patch)
tree644a9acc2b74a9f2812f686304455f023886661a
parent3d580990643119cccb73f4f15d549863a6660aa6 (diff)
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@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
-rw-r--r--vcl/opengl/gdiimpl.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 51374b9f9381..bae53023dba5 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);