render/egl: add support for EGL_KHR_display_reference

See the spec at [1]. tl;dr EGL has terrible defaults: eglTerminate()
may have side-effects on completely unrelated EGLDisplay objects.
This extension allows us to opt-in to get the sane behavior:
eglTerminate() only free's our own EGLDisplay without affecting
others.

[1]: https://registry.khronos.org/EGL/extensions/KHR/EGL_KHR_display_reference.txt
This commit is contained in:
Simon Ser 2022-09-16 20:44:46 +02:00 committed by Simon Zeni
parent 2ad25b1460
commit 5206cea566
2 changed files with 15 additions and 2 deletions

View file

@ -24,6 +24,7 @@ struct wlr_egl {
bool EXT_device_query;
bool KHR_platform_gbm;
bool EXT_platform_device;
bool KHR_display_reference;
} exts;
struct {