summaryrefslogtreecommitdiff
path: root/vcl/opengl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 08:11:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 13:09:09 +0200
commitca014eca8a07ae97125afa6e47d56c44269d7a73 (patch)
treea4ee4b6bf659625f021a4e621e7575dcc6d37222 /vcl/opengl
parent6eba86ae9d6c8550e069ef933889610aee309381 (diff)
loplugin:constantparam
Change-Id: I895ceffa468d84d22e4a81b7a6b06eaed0bd839d Reviewed-on: https://gerrit.libreoffice.org/61776 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r--vcl/opengl/x11/gdiimpl.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/vcl/opengl/x11/gdiimpl.cxx b/vcl/opengl/x11/gdiimpl.cxx
index 98eb604fd1b3..d3b933379a41 100644
--- a/vcl/opengl/x11/gdiimpl.cxx
+++ b/vcl/opengl/x11/gdiimpl.cxx
@@ -117,7 +117,7 @@ namespace
return 0;
}
- GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC, bool bUseDoubleBufferedRendering)
+ GLXFBConfig* getFBConfig(Display* dpy, Window win, int& nBestFBC)
{
OpenGLZone aZone;
@@ -150,9 +150,6 @@ namespace
None
};
- if (!bUseDoubleBufferedRendering)
- visual_attribs[1] = False;
-
int fbCount = 0;
GLXFBConfig* pFBC = glXChooseFBConfig( dpy,
screen,
@@ -260,7 +257,7 @@ SystemWindowData X11OpenGLContext::generateWinData(vcl::Window* pParent, bool /*
return aWinData;
int best_fbc = -1;
- GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc, true);
+ GLXFBConfig* pFBC = getFBConfig(dpy, win, best_fbc);
if (!pFBC)
return aWinData;
@@ -302,7 +299,7 @@ bool X11OpenGLContext::ImplInit()
if (hasCreateContextAttribsARB && !mbRequestLegacyContext)
{
int best_fbc = -1;
- GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc, /*bUseDoubleBufferedRendering*/true);
+ GLXFBConfig* pFBC = getFBConfig(m_aGLWin.dpy, m_aGLWin.win, best_fbc);
if (pFBC && best_fbc != -1)
{