src/standalone/cef_overlay.cc
// If you get an error please report on GitHub. You may try different GL context version or GLSL version.
If you get an error please report on GitHub. You may try different GL context version or GLSL version.
If you get an error please report on GitHub . You may try different GL context version or GLSL version .
static bool CheckProgram(GLuint handle, const char* desc)
{
    GLint status = 0, log_length = 0;
    glGetProgramiv(handle, GL_LINK_STATUS, &status);
    glGetProgramiv(handle, GL_INFO_LOG_LENGTH, &log_length);
    if ((GLboolean)status == GL_FALSE)
        fprintf(stderr, "ERROR: InitOverlayShader: failed to link %s!\n", desc);
    if (log_length > 1)
    {
        ImVector<char> buf;
        buf.resize((int)(log_length + 1));
        glGetProgramInfoLog(handle, log_length, NULL, (GLchar*)buf.begin());
        fprintf(stderr, "%s\n", buf.begin());
    }
    return (GLboolean)status == GL_TRUE;
}
static bool CheckProgram ( GLuint handle , const char * desc ) { GLint status = 0 , log_length = 0 ; glGetProgramiv ( handle , GL_LINK_STATUS , & status ) ; glGetProgramiv ( handle , GL_INFO_LOG_LENGTH , & log_length ) ; if ( ( GLboolean ) status == GL_FALSE ) fprintf ( stderr , " \n " , desc ) ; if ( log_length > 1 ) { ImVector < char > buf ; buf . resize ( ( int ) ( log_length + 1 ) ) ; glGetProgramInfoLog ( handle , log_length , NULL , ( GLchar * ) buf . begin ( ) ) ; fprintf ( stderr , " \n " , buf . begin ( ) ) ; } return ( GLboolean ) status == GL_TRUE ; }
If you get an error please report on GitHub.
If you get an error please report on GitHub .