Examples: imgui_impl_opengl3: Fix empty printout on shader load. (#2584)
Fixed minor bug in CheckShader and CheckProgram

The log_length reported by 
glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length)
will at least return 1, since the string delimiter is also counted.

The old version would always print and empty string to stderr. This is annoying in the emscripten port, since it prints a red error message to the Javascript console. The new version fixes this behavior.
1 parent 958d75c commit affa7e24224b9078826b56c92347af83dcb9241e
@Mario Botsch Mario Botsch authored on 27 May 2019
omar committed on 27 May 2019
Showing 1 changed file
View
examples/imgui_impl_opengl3.cpp