diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-11 11:36:29 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2018-05-14 09:28:00 +0200 |
commit | 04042e42cf839d16ef67adb67024e17315e5343f (patch) | |
tree | 1bf94d9fe8ea1772255b27472a18607836ea2970 /vcl/opengl | |
parent | 4f043c0a269ff0bb13d4714dbcda471e47f7c1c1 (diff) |
vcl opengl Windows: only log non-success wglMakeCurrent() failure reason
The rendering result on this Intel card is acceptable, but the console
is flooded with warnings saying wglMakeCurrent() failed with reason
"success", which makes it hard to see any other more important message.
I assume the root cause here is a broken driver.
Change-Id: I112279e9d669b804baeb47383b8357f1a1b7fde5
Reviewed-on: https://gerrit.libreoffice.org/54124
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/win/gdiimpl.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx index 86e5bd4b958a..96f0b8bce57d 100644 --- a/vcl/opengl/win/gdiimpl.cxx +++ b/vcl/opengl/win/gdiimpl.cxx @@ -114,7 +114,9 @@ void WinOpenGLContext::makeCurrent() if (!wglMakeCurrent(m_aGLWin.hDC, m_aGLWin.hRC)) { g_bAnyCurrent = false; - SAL_WARN("vcl.opengl", "wglMakeCurrent failed: " << WindowsErrorString(GetLastError())); + DWORD nLastError = GetLastError(); + if (nLastError != ERROR_SUCCESS) + SAL_WARN("vcl.opengl", "wglMakeCurrent failed: " << WindowsErrorString(nLastError)); return; } |