summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2015-08-30 00:33:49 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2015-08-30 00:35:44 +0200
commit5191fcb11688ef8f4ec312293e57e151762c6952 (patch)
treee88e66d63a9b59e7e493d4c2df57e0b0a80cf158
parent452cd9e75de657e996e17510fe5d3539065489d1 (diff)
werror: fix build in vcl
Change-Id: I30f9e1858c90943e1d369aeea02e10d8037a4ca8
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 8253241795ea..70a6cbc57011 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -785,9 +785,13 @@ bool OpenGLContext::ImplInit()
glXSwapInterval( 1 );
if( errorTriggered )
+ {
SAL_WARN("vcl.opengl", "error when trying to set swap interval, NVIDIA or Mesa bug?");
+ }
else
+ {
VCL_GL_INFO("vcl.opengl", "set swap interval to 1 (enable vsync)");
+ }
}
}
@@ -1359,6 +1363,7 @@ void OpenGLContext::makeCurrent()
// move the context to the end of the contexts list
static int nSwitch = 0;
+ (void) nSwitch; // -Werror=unused-variable
VCL_GL_INFO("vcl.opengl", "******* CONTEXT SWITCH " << ++nSwitch << " *********");
if( mpNextContext )
{