weston/libweston/renderer-gl
Pekka Paalanen 7ba4c515a3 gl-renderer: prefer the base EGLConfig
If configless_context is not supported, we pick one EGLConfig as the "base
config" because we have just one GL context and different configs between the
context and EGLSurfaces might not work. Until now, we did not actually make
sure to pick the base config.

If the base config matches the requirements, prefer it. Only if it doesn't
match, go looking for another config.

This should give better chances of success on systems where configless_context
is not supported by relying less on eglChooseConfig().

Cc: Madhurkiran Harikrishnan <madhurkiran.harikrishnan@xilinx.com>
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2019-10-04 12:17:18 +03:00
..
egl-glue.c gl-renderer: prefer the base EGLConfig 2019-10-04 12:17:18 +03:00
gl-renderer-internal.h gl-renderer: configs for pbuffers too 2019-10-04 12:17:18 +03:00
gl-renderer.c gl-renderer: pbuffer config for non-surfaceless 2019-10-04 12:17:18 +03:00
gl-renderer.h gl-renderer: remove EGLConfig attributes from API 2019-10-04 12:17:18 +03:00
meson.build gl-renderer: move into egl-glue.c 2019-10-04 12:17:18 +03:00