Skip to content

Commit

Permalink
print hex representation of OpenGL errors
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-rauch committed Aug 6, 2018
1 parent ffef1c5 commit d74ffff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pangolin/gl/glinclude.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline void _CheckGlDieOnError( const char *sFile, const int nLine )
{
GLenum glError = glGetError();
if( glError != GL_NO_ERROR ) {
pango_print_error( "OpenGL Error: %s (%d)\n", glErrorString(glError), glError );
pango_print_error( "OpenGL Error: %s (%x)\n", glErrorString(glError), glError );
pango_print_error("In: %s, line %d\n", sFile, nLine);
}
}
Expand Down

0 comments on commit d74ffff

Please sign in to comment.