Kaydet (Commit) 751c5f5b authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Revert "werror: fix build in vcl"

This reverts commit 5191fcb1.
Earlier, better fix was 831c69f9
üst 3286c6c8
...@@ -785,13 +785,9 @@ bool OpenGLContext::ImplInit() ...@@ -785,13 +785,9 @@ bool OpenGLContext::ImplInit()
glXSwapInterval( 1 ); glXSwapInterval( 1 );
if( errorTriggered ) if( errorTriggered )
{
SAL_WARN("vcl.opengl", "error when trying to set swap interval, NVIDIA or Mesa bug?"); SAL_WARN("vcl.opengl", "error when trying to set swap interval, NVIDIA or Mesa bug?");
}
else else
{
VCL_GL_INFO("vcl.opengl", "set swap interval to 1 (enable vsync)"); VCL_GL_INFO("vcl.opengl", "set swap interval to 1 (enable vsync)");
}
} }
} }
...@@ -1363,7 +1359,6 @@ void OpenGLContext::makeCurrent() ...@@ -1363,7 +1359,6 @@ void OpenGLContext::makeCurrent()
// move the context to the end of the contexts list // move the context to the end of the contexts list
static int nSwitch = 0; static int nSwitch = 0;
(void) nSwitch; // -Werror=unused-variable
VCL_GL_INFO("vcl.opengl", "******* CONTEXT SWITCH " << ++nSwitch << " *********"); VCL_GL_INFO("vcl.opengl", "******* CONTEXT SWITCH " << ++nSwitch << " *********");
if( mpNextContext ) if( mpNextContext )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment