Clean up loader setup for GLX.

macos/v1.5.9
Eric Anholt 11 years ago
parent 5f60534bac
commit 2f811c543f
  1. 9
      src/gen_dispatch.py

@ -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))

Loading…
Cancel
Save