mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-03 17:24:24 +00:00 
			
		
		
		
	Examples: imgui_imp_opengl3.cpp explicit casting for overly aggressive glbinding compatibility. (#2112) [@hesiod]
This commit is contained in:
		@@ -312,7 +312,7 @@ 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 (status == GL_FALSE)
 | 
			
		||||
    if ((GLboolean)status == GL_FALSE)
 | 
			
		||||
        fprintf(stderr, "ERROR: ImGui_ImplOpenGL3_CreateDeviceObjects: failed to compile %s!\n", desc);
 | 
			
		||||
    if (log_length > 0)
 | 
			
		||||
    {
 | 
			
		||||
@@ -321,7 +321,7 @@ static bool CheckShader(GLuint handle, const char* desc)
 | 
			
		||||
        glGetShaderInfoLog(handle, log_length, NULL, (GLchar*)buf.begin());
 | 
			
		||||
        fprintf(stderr, "%s\n", buf.begin());
 | 
			
		||||
    }
 | 
			
		||||
    return status == GL_TRUE;
 | 
			
		||||
    return (GLboolean)status == GL_TRUE;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// If you get an error please report on github. You may try different GL context version or GLSL version.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user