summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-12 17:16:57 -0800
committerEric Anholt <eric@anholt.net>2013-12-12 17:17:17 -0800
commitcb647a085398e2d6dd063aabde626b758f3ab307 (patch)
treec2f3ea0d6697589e05dabb27a7264000b62fc939 /src
parentdd6feb7b00545611a7a5b1d469244b3936d46cad (diff)
Fix loading of EGL 1.1+ entrypoints.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/gen_dispatch.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gen_dispatch.py b/src/gen_dispatch.py
index 8786b48..7fbb83f 100755
--- a/src/gen_dispatch.py
+++ b/src/gen_dispatch.py
@@ -358,10 +358,11 @@ class Generator(object):
human_name = 'EGL {0}'.format(version)
if version > 10:
condition = 'epoxy_conservative_egl_version() >= {0}'.format(version)
- loader = 'eglGetProcAddress({0})'
else:
condition = 'true'
- loader = 'epoxy_egl_dlsym({0})'
+ # All EGL core entrypoints must be dlsym()ed out --
+ # eglGetProcAdddress() will return NULL.
+ loader = 'epoxy_egl_dlsym({0})'
elif api == 'wgl':
# There's no reason for us to interpose the
# non-extension WGL symbols, which we know are always