Add support for GLES extensions.

I think we don't want to be checking that the context is actually of
the declared types -- if the extension is exposed in the extension
string, the entrypoints had better be there.
macos/v1.5.9
Eric Anholt 11 years ago
parent 9b8ac73231
commit f097de94eb
  1. 2
      src/gen_dispatch.py

@ -325,7 +325,7 @@ class Generator(object):
condition = 'epoxy_conservative_has_egl_extension("{0}")'.format(extname) condition = 'epoxy_conservative_has_egl_extension("{0}")'.format(extname)
loader = 'eglGetProcAddress({0})' loader = 'eglGetProcAddress({0})'
self.process_require_statements(extension, condition, loader, human_name) self.process_require_statements(extension, condition, loader, human_name)
if 'gl' in apis: if {'gl', 'gles1', 'gles2'}.intersection(apis):
human_name = 'GL extension \\"{0}\\"'.format(extname) human_name = 'GL extension \\"{0}\\"'.format(extname)
condition = 'epoxy_conservative_has_gl_extension("{0}")'.format(extname) condition = 'epoxy_conservative_has_gl_extension("{0}")'.format(extname)
loader = 'epoxy_get_proc_address({0})' loader = 'epoxy_get_proc_address({0})'

Loading…
Cancel
Save