diff options
author | Emil Velikov <[email protected]> | 2015-05-11 23:43:48 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-05-14 21:00:05 +0000 |
commit | e3cc5ad49d2f3f08c29d0b64d1c0c52560789d93 (patch) | |
tree | ed4586380951d11b81c54da49c2ba2c758561971 /src/egl/main/eglarray.h | |
parent | f9bf9133ccc3764dc38f6359a26004e12b888af3 (diff) |
egl/main: expose only core EGL functions statically
The EGL 1.3, 1.4 and 1.5 spec (as quoted below) explicitly mentions that
providing static symbols for functions provided by EGL extensions is not
portable. Considering that relatively recently we've seen a non-mesa
desktop EGL implementation, the fact that we opt for such behaviour has
gone unnoticed.
From the EGL 1.5 specification:
For functions that are queryable with eglGetProcAddress,
implementations may choose to also export those functions
statically from the object libraries implementing those
functions. However, portable clients cannot rely on this
behavior.
To encourage devs against writing such non-portable code, let's hide the
symbols similar to the official binary driver from NVIDIA.
v2: Quote the EGL 1.5 spec, as suggested by Chad.
Cc: Brian Paul <[email protected]>
Cc: Chad Versace <[email protected]>
Cc: Daniel Kurtz <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main/eglarray.h')
0 files changed, 0 insertions, 0 deletions