mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
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.
This commit is contained in:
parent
dd4c8aa45e
commit
f1d37c54c8
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue