src/OrbitGl/ImGuiOrbit.cpp
static bool CheckShader(GLuint handle, const char* desc) {
  GLint status = 0, log_length = 0;
  glGetShaderiv(handle, GL_COMPILE_STATUS, &status);
  glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length);
  if (log_length > 1) {
    ImVector<char> buf;
    buf.resize(static_cast<int>(log_length + 1));
    glGetShaderInfoLog(handle, log_length, NULL, static_cast<GLchar*>(buf.begin()));
    LOG("Log from shader compilation: %s", buf.begin());
  }
  if (static_cast<GLboolean>(status) == GL_FALSE) {
    FATAL("Orbit_ImGui_CreateDeviceObjects: failed to compile %s!", desc);
  }
  return static_cast<GLboolean>(status) == GL_TRUE;
}
// If you get an error please report on github. You may try different GL context
// version or GLSL version. See GL<>GLSL version table at the top of this file.
If you get an error please report on github. You may try different GL context
version or GLSL version. See GL<>GLSL version table at the top of this file.
If you get an error please report on github . You may try different GL context version or GLSL version . See GL< > GLSL version table at the top of this file .
static bool CheckShader(GLuint handle, const char* desc) {
  GLint status = 0, log_length = 0;
  glGetShaderiv(handle, GL_COMPILE_STATUS, &status);
  glGetShaderiv(handle, GL_INFO_LOG_LENGTH, &log_length);
  if (log_length > 1) {
    ImVector<char> buf;
    buf.resize(static_cast<int>(log_length + 1));
    glGetShaderInfoLog(handle, log_length, NULL, static_cast<GLchar*>(buf.begin()));
    LOG("Log from shader compilation: %s", buf.begin());
  }
  if (static_cast<GLboolean>(status) == GL_FALSE) {
    FATAL("Orbit_ImGui_CreateDeviceObjects: failed to compile %s!", desc);
  }
  return static_cast<GLboolean>(status) == GL_TRUE;
}
static bool CheckShader ( GLuint handle , const char * desc ) { GLint status = 0 , log_length = 0 ; glGetShaderiv ( handle , GL_COMPILE_STATUS , & status ) ; glGetShaderiv ( handle , GL_INFO_LOG_LENGTH , & log_length ) ; if ( log_length > 1 ) { ImVector < char > buf ; buf . resize ( static_cast < int > ( log_length + 1 ) ) ; glGetShaderInfoLog ( handle , log_length , NULL , static_cast < GLchar * > ( buf . begin ( ) ) ) ; LOG ( " " , buf . begin ( ) ) ; } if ( static_cast < GLboolean > ( status ) == GL_FALSE ) { FATAL ( " " , desc ) ; } return static_cast < GLboolean > ( status ) == GL_TRUE ; }
If you get an error please report on github.
If you get an error please report on github .