@ -282,14 +282,8 @@ class Generator(object):
human_name = ' Desktop OpenGL {0} ' . format ( feature . get ( ' number ' ) )
human_name = ' Desktop OpenGL {0} ' . format ( feature . get ( ' number ' ) )
condition = ' epoxy_is_desktop_gl() '
condition = ' epoxy_is_desktop_gl() '
# Everything in GL 1.2 is guaranteed to be present as
loader = ' epoxy_get_core_proc_address( {0} , {1} ) ' . format ( ' {0} ' , version )
# public symbols in the Linux libGL ABI. Everything
if version > = 11 :
# else is supposed to not be present, so you have to
# glXGetProcAddress() it.
if version < = 12 :
loader = ' epoxy_gl_dlsym( {0} ) '
else :
loader = ' epoxy_get_proc_address( {0} ) '
condition + = ' && epoxy_conservative_gl_version() >= {0} ' . format ( version )
condition + = ' && epoxy_conservative_gl_version() >= {0} ' . format ( version )
elif api == ' gles2 ' :
elif api == ' gles2 ' :
human_name = ' OpenGL ES {0} ' . format ( feature . get ( ' number ' ) )
human_name = ' OpenGL ES {0} ' . format ( feature . get ( ' number ' ) )