Kaydet (Commit) 04042e42 authored tarafından Miklos Vajna's avatar Miklos Vajna

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/54124Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.co.uk>
üst 4f043c0a
......@@ -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;
}
......
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