Kaydet (Commit) 38357ee0 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

OpenGL error codes are defined in hex, so show them as such

Change-Id: I1f7fd98b243c49bfd90060b297bb2391cb102bb3
üst 126df1ee
...@@ -695,11 +695,10 @@ void OpenGLHelper::checkGLError(const char* pFile, size_t nLine) ...@@ -695,11 +695,10 @@ void OpenGLHelper::checkGLError(const char* pFile, size_t nLine)
break; break;
} }
const char* sError = OpenGLHelper::GLErrorString(glErr); const char* sError = OpenGLHelper::GLErrorString(glErr);
if (!sError)
sError = "no message available";
if (sError) SAL_WARN("vcl.opengl", "GL Error " << std::hex << std::setw(4) << std::setfill('0') << glErr << std::dec << std::setw(0) << std::setfill(' ') << " (" << sError << ") in file " << pFile << " at line " << nLine);
SAL_WARN("vcl.opengl", "GL Error #" << glErr << "(" << sError << ") in File " << pFile << " at line: " << nLine);
else
SAL_WARN("vcl.opengl", "GL Error #" << glErr << " (no message available) in File " << pFile << " at line: " << nLine);
// tdf#93798 - apitrace appears to sometimes cause issues with an infinite loop here. // tdf#93798 - apitrace appears to sometimes cause issues with an infinite loop here.
if (++nErrors >= 8) if (++nErrors >= 8)
......
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