egl: simplify client/platform extension handling
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Apr 2020 10:46:47 +0000 (11:46 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 22:20:24 +0000 (22:20 +0000)
commit0a884d730455c3faf1ea48d4693c14f9f1e0c869
treea0af0a687ff869e546479d34cf16211c7b53e57a
parent013d9e40feed336d983b728357e4ce77b871c36d
egl: simplify client/platform extension handling

For GLVND reasons the client/platform extensions strings should be
split. While in the non GLVND case they're one big string.

Currently we handle this distinction at run-time for not obvious reason.
Adding additional code and complexity.

Swap those with a few well placed #if USE_LIBGLVND guards.

As a side result this removes a minor memory leak due to the
concatenation in the non GLVND case.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4491>
src/egl/main/eglapi.c
src/egl/main/eglglobals.c
src/egl/main/eglglobals.h
src/egl/main/eglglvnd.c