aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/egl-entrypoint-check
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-02-21 23:56:51 +0000
committerEric Engestrom <[email protected]>2017-02-24 17:00:50 +0000
commitd25dea0c688cc05f08b4ae32545e9a3bd5b33be0 (patch)
tree4407090bc3da69baff435a72969554fe895cdce5 /src/egl/egl-entrypoint-check
parent557f3181bfe3ac2de3778d5b88f67da6a69ce837 (diff)
egl: make sure entrypoints list is always sorted
Starting with the next commit, badly sorting this list will break the eglGetProcAddress(). Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/egl/egl-entrypoint-check')
-rwxr-xr-xsrc/egl/egl-entrypoint-check5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/egl-entrypoint-check b/src/egl/egl-entrypoint-check
new file mode 100755
index 00000000000..ec33d8e97f8
--- /dev/null
+++ b/src/egl/egl-entrypoint-check
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+entrypoints=$(grep EGL_ENTRYPOINT "$srcdir"/main/eglentrypoint.h)
+sorted=$(sort <<< "$entrypoints")
+test "$entrypoints" = "$sorted"