Skip to content

Commit

Permalink
Log isGlError using LOG instead of fprintf.
Browse files Browse the repository at this point in the history
  • Loading branch information
fzurita committed Nov 23, 2016
1 parent 20e4f97 commit bc00985
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/OpenGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,12 @@ bool isGLError()

if ((errCode = glGetError()) != GL_NO_ERROR) {
errString = GLErrorString(errCode);
if (errString != nullptr)
fprintf (stderr, "OpenGL Error: %s\n", errString);
if (errString != nullptr) {
LOG(LOG_ERROR, "OpenGL Error: %s (%x)", errString, errCode);
} else {
LOG(LOG_ERROR, "OpenGL Error: %x", errCode);
}

return true;
}
return false;
Expand Down

0 comments on commit bc00985

Please sign in to comment.