summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-05 15:15:37 -0800
committerEric Anholt <eric@anholt.net>2013-12-05 15:41:27 -0800
commitf097de94eb6219c63e4933ddc4d759ab2e367103 (patch)
treecbbf92549565e3ff23ca9a50b19ae9b8a2341b26 /src
parent9b8ac7323167567fb56f01a1a8a9c9413aff5991 (diff)
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.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gen_dispatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py
index 048785f..8e99dcb 100755
--- a/src/gen_dispatch.py
+++ b/src/gen_dispatch.py
@@ -325,7 +325,7 @@ class Generator(object):
condition = 'epoxy_conservative_has_egl_extension("{0}")'.format(extname)
loader = 'eglGetProcAddress({0})'
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)
condition = 'epoxy_conservative_has_gl_extension("{0}")'.format(extname)
loader = 'epoxy_get_proc_address({0})'