summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-16 14:16:32 +0000
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2015-11-16 17:18:29 +0000
commit4ad05823f6c2edb0f5fbf5794b2deb6c163686a2 (patch)
treeaa70f7103304f9a6c9b3a55a84822782f4874b45
parent38839ae10cb565ff1977b1839de1c8278eac657b (diff)
Add comment to 'direct' parameter: un-related to double-buffering.
Change-Id: I07002fd73fc004439aea75c5aca8ca3700ec1079 Reviewed-on: https://gerrit.libreoffice.org/19996 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 8088b656cd43..6929bbc5b825 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -742,7 +742,7 @@ bool OpenGLContext::ImplInit()
GLX_CONTEXT_MINOR_VERSION_ARB, 2,
None
};
- m_aGLWin.ctx = glXCreateContextAttribsARB(m_aGLWin.dpy, pFBC[best_fbc], pSharedCtx, GL_TRUE, pContextAttribs);
+ m_aGLWin.ctx = glXCreateContextAttribsARB(m_aGLWin.dpy, pFBC[best_fbc], pSharedCtx, /* direct, not via X */ GL_TRUE, pContextAttribs);
SAL_INFO_IF(m_aGLWin.ctx, "vcl.opengl", "created a 3.2 core context");
}
else
@@ -759,7 +759,7 @@ bool OpenGLContext::ImplInit()
m_aGLWin.ctx = glXCreateContext(m_aGLWin.dpy,
m_aGLWin.vi,
pSharedCtx,
- GL_TRUE);
+ GL_TRUE /* direct, not via X server */);
}
if( m_aGLWin.ctx )