From 41d3338958e184ad4bbcc9a86931aa697af52a67 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 25 Jan 2015 03:40:39 +0100 Subject: temp debug code --- vcl/source/opengl/OpenGLContext.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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; } -- cgit v1.2.3