From 1415b726714b3d4f606020eedf8e875c8325ce72 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 14 Sep 2017 08:42:02 +0200 Subject: loplugin:externvar (clang-cl) Change-Id: I83245eb7d616d87b74326f49911b1fa5fc58431e --- vcl/opengl/win/gdiimpl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index c91577130071..d81c37283983 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -76,10 +76,9 @@ void WinOpenGLContext::resetCurrent() g_bAnyCurrent = false; } -thread_local bool bEpoxyDispatchMakeCurrentCalled = false; - void ensureDispatchTable() { + thread_local bool bEpoxyDispatchMakeCurrentCalled = false; if (!bEpoxyDispatchMakeCurrentCalled) { epoxy_handle_external_wglMakeCurrent(); -- cgit