diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-03-31 04:03:12 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-04-08 04:38:19 +0200 |
commit | ee86c908d1d9f8ed19482b3f844e387018b1a904 (patch) | |
tree | d5b3e3a7d7447ab7299c415f74d3e624f90ca78c /vcl/source | |
parent | f92ee8f9b0bb3c3b61e483c30d227fe4f8c484b6 (diff) |
OSL_TRACE to SAL_INFO in opengl code
Change-Id: I7bdefec1cf941d1a51b7777639c0979387e1b436
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 2b47d3921977..e5500d413da5 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -336,7 +336,7 @@ bool OpenGLContext::init( Window* pParent ) GL_TRUE); if( m_aGLWin.ctx == NULL ) { - OSL_TRACE("unable to create GLX context"); + SAL_INFO("vcl.opengl", "unable to create GLX context"); return false; } #endif @@ -384,7 +384,7 @@ bool OpenGLContext::init( Window* pParent ) #elif defined( UNX ) if( !glXMakeCurrent( m_aGLWin.dpy, m_aGLWin.win, m_aGLWin.ctx ) ) { - OSL_TRACE("unable to select current GLX context"); + SAL_INFO("vcl.opengl", "unable to select current GLX context"); return false; } @@ -392,10 +392,10 @@ bool OpenGLContext::init( Window* pParent ) double nGLXVersion = 0; if( glXQueryVersion( m_aGLWin.dpy, &glxMajor, &glxMinor ) ) nGLXVersion = glxMajor + 0.1*glxMinor; - OSL_TRACE("available GLX version: %f", nGLXVersion); + SAL_INFO("vcl.opengl", "available GLX version: %f", nGLXVersion); m_aGLWin.GLExtensions = glGetString( GL_EXTENSIONS ); - OSL_TRACE("available GL extensions: %s", m_aGLWin.GLExtensions); + SAL_INFO("vcl.opengl", "available GL extensions: %s", m_aGLWin.GLExtensions); if( m_aGLWin.HasGLXExtension("GLX_SGI_swap_control" ) ) { @@ -417,9 +417,9 @@ bool OpenGLContext::init( Window* pParent ) XSync(m_aGLWin.dpy, false); if( errorTriggered ) - OSL_TRACE("error when trying to set swap interval, NVIDIA or Mesa bug?"); + SAL_INFO("vcl.opengl", "error when trying to set swap interval, NVIDIA or Mesa bug?"); else - OSL_TRACE("set swap interval to 1 (enable vsync)"); + SAL_INFO("vcl.opengl", "set swap interval to 1 (enable vsync)"); // restore the error handler XSetErrorHandler( oldHandler ); @@ -513,7 +513,7 @@ bool OpenGLContext::initWindow() m_aGLWin.win = sysData->aWindow; - OSL_TRACE("parent window: %d", m_aGLWin.win); + SAL_INFO("vcl.opengl", "parent window: %d", m_aGLWin.win); XWindowAttributes xattr; XGetWindowAttributes( m_aGLWin.dpy, m_aGLWin.win, &xattr ); @@ -576,7 +576,7 @@ bool OpenGLContext::initWindow() { SystemWindowData winData; winData.nSize = sizeof(winData); - OSL_TRACE("using VisualID %08X", vi->visualid); + SAL_INFO("vcl.opengl", "using VisualID %08X", vi->visualid); winData.pVisual = (void*)(vi->visual); m_pChildWindow.reset(new SystemChildWindow(m_pWindow.get(), 0, &winData, false)); pChildSysData = m_pChildWindow->GetSystemData(); @@ -595,7 +595,7 @@ bool OpenGLContext::initWindow() m_aGLWin.win = pChildSysData->aWindow; m_aGLWin.vi = vi; m_aGLWin.GLXExtensions = glXQueryExtensionsString( m_aGLWin.dpy, m_aGLWin.screen ); - OSL_TRACE("available GLX extensions: %s", m_aGLWin.GLXExtensions); + SAL_INFO("vcl.opengl", "available GLX extensions: %s", m_aGLWin.GLXExtensions); return true; } |