
488 VI Debugging and Profiling
glDebugMessageInsertARB(GL_DEBUG_SOURCE_APPLICATION_ARB ,
GL_DEBUG_TYPE_ERROR_ARB,
1111 , GL_DEBUG_SEVERITY_LOW_ARB,
-1 , // null terminated string
"Houston , there s some problem with my app ...");
Listing 33.5. Extension function to add events to the event log.
solved by adding, in each event’s message, an identification of the library who is-
sued it.
Adding events to the log is very straightforward, with only one new function,
glDebugMessageInsertARB. An example of usage can be found in Listing 33.5.
The source field can only be GL
DEBUG SOURCE APPLICATION ARB or GL DEBUG
SOURCE THIRD PARTY ARB. The specification states that ...