|
|
|
@ -289,14 +289,13 @@ class Generator(object): |
|
|
|
|
elif api == 'glx': |
|
|
|
|
human_name = 'GLX {0}'.format(version) |
|
|
|
|
condition = 'epoxy_is_glx()' |
|
|
|
|
# We could just always use GPA, but dlsym() is a more |
|
|
|
|
# efficient lookup. |
|
|
|
|
if version > 13: |
|
|
|
|
condition = condition + ' && epoxy_glx_version() >= {0}'.format(version) |
|
|
|
|
loader = self.dlsym_loader |
|
|
|
|
|
|
|
|
|
if version <= 13: |
|
|
|
|
loader = self.dlsym_loader |
|
|
|
|
else: |
|
|
|
|
loader = self.gpa_loader |
|
|
|
|
else: |
|
|
|
|
loader = self.dlsym_loader |
|
|
|
|
else: |
|
|
|
|
sys.exit('unknown API: "{0}"'.format(api)) |
|
|
|
|
|
|
|
|
|