From d226cfacfd66d5c81d37f707b95f318efe32e5ba Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 4 Apr 2017 13:34:24 +0300 Subject: [PATCH] tdf#105162: Need to call epoxy_handle_external_wglMakeCurrent() Somewhere, in time before calling epoxy-wrapper OpenGL functions. This seems to be a good place. Educated guess based on debugging, turned out to work. Change-Id: Id3f1dfb0c5a9dbfb166c47ea81db902af1a4fc08 --- vcl/opengl/win/gdiimpl.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index 4209e0c41c49..5a5516db63de 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -96,6 +96,8 @@ void WinOpenGLContext::makeCurrent() clearCurrent(); + epoxy_handle_external_wglMakeCurrent(); + if (!wglMakeCurrent(m_aGLWin.hDC, m_aGLWin.hRC)) { g_bAnyCurrent = false;