aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorBrandon Dowdy <berylline@users.noreply.github.com>2021-01-31 23:19:10 +0000
committerSimon Ser <contact@emersion.fr>2021-02-01 09:31:44 +0100
commitf1d37c54c897b4dd0db14af857482955996bd6dc (patch)
treee506dcbf89b5ba48824a97f5f459a69d4ce37582 /render
parentdd4c8aa45e7edba468d4ff2dee6fd6f8ce42810b (diff)
render/egl: add check for EGL_KHR_surfaceless_context
As surfaces are no longer going to be used for wlr_egl, I may as well just go and add this check as it is needed for safety whenever surface-less rendering is being used.
Diffstat (limited to 'render')
-rw-r--r--render/egl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c
index 4ff1c1b7..671e02b9 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -292,6 +292,12 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
goto error;
}
+ if (!check_egl_ext(display_exts_str, "EGL_KHR_surfaceless_context")) {
+ wlr_log(WLR_ERROR,
+ "EGL_KHR_surfaceless_context not supported");
+ goto error;
+ }
+
wlr_log(WLR_INFO, "Using EGL %d.%d", (int)major, (int)minor);
wlr_log(WLR_INFO, "Supported EGL client extensions: %s", client_exts_str);
wlr_log(WLR_INFO, "Supported EGL display extensions: %s", display_exts_str);