summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-25 03:40:39 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-25 03:40:39 +0100
commit41d3338958e184ad4bbcc9a86931aa697af52a67 (patch)
tree869df3335ef9003699661a51427e1973e146388d
parentccb7b443cf0ac457c51f3bc6c1b8ef660fc558b4 (diff)
temp debug code
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 36ab9d0afccd..6ea2f74e4315 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -108,6 +108,7 @@ OpenGLContext::~OpenGLContext()
#ifdef DBG_UTIL
void OpenGLContext::AddRef(OpenGLSalGraphicsImpl* pImpl)
{
+ SAL_WARN_IF(!pImpl, "vcl.opengl", "added now");
assert(mnRefCount > 0);
mnRefCount++;
@@ -116,6 +117,7 @@ void OpenGLContext::AddRef(OpenGLSalGraphicsImpl* pImpl)
void OpenGLContext::DeRef(OpenGLSalGraphicsImpl* pImpl)
{
+ SAL_WARN_IF(!pImpl, "vcl.opengl", "removed now");
auto it = maParents.find(pImpl);
if(it != maParents.end())
@@ -1377,6 +1379,11 @@ void OpenGLContext::makeCurrent()
GLXDrawable nDrawable = mbPixmap ? m_aGLWin.glPix : m_aGLWin.win;
if (!glXMakeCurrent( m_aGLWin.dpy, nDrawable, m_aGLWin.ctx ))
{
+ for (auto it = maParents.begin(), itEnd = maParents.end(); it != itEnd; ++it)
+ {
+ SAL_DEBUG(*it);
+ SAL_DEBUG((*it)->IsOffscreen());
+ }
SAL_WARN("vcl.opengl", "OpenGLContext::makeCurrent failed on drawable " << nDrawable << " pixmap? " << mbPixmap);
return;
}