Assume GLX 1.2 is automatically available on Linux with GLX.

This prevents infinite recursion in dispatch when trying to find
symbols to determine the GLX version.
macos/v1.5.9
Eric Anholt 11 years ago
parent 04cf940e1b
commit 75c97229d3
  1. 4
      src/gen_dispatch.py

@ -229,7 +229,9 @@ class Generator(object):
loader = self.gpa_loader loader = self.gpa_loader
elif api == 'glx': elif api == 'glx':
human_name = 'GLX {0}'.format(version) human_name = 'GLX {0}'.format(version)
condition = 'epoxy_glx_version() >= {0}'.format(version) condition = 'epoxy_is_glx()'
if version > 12:
condition = condition + ' && epoxy_glx_version() >= {0}'.format(version)
loader = self.dlsym_loader loader = self.dlsym_loader
if version <= 13: if version <= 13:

Loading…
Cancel
Save