mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
render/egl: check "EGL_KHR_platform_gbm" for EGL gbm platform
See the https://www.khronos.org/registry/EGL/extensions/KHR/EGL_KHR_platform_gbm.txt example code. On EGL_PLATFORM_GBM_KHR platform, we should be check the "EGL_KHR_platform_gbm" extension. Change-Id: Icf11c07c2949841a80b10527fb09987257fbd63b
This commit is contained in:
parent
8ccb4bbb5f
commit
69e1997ebe
1 changed files with 7 additions and 0 deletions
|
@ -172,6 +172,13 @@ struct wlr_egl *wlr_egl_create(EGLenum platform, void *remote_display) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (platform == EGL_PLATFORM_GBM_KHR) {
|
||||
if (!check_egl_ext(client_exts_str, "EGL_KHR_platform_gbm")) {
|
||||
wlr_log(WLR_ERROR, "EGL_KHR_platform_gbm not supported");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (!check_egl_ext(client_exts_str, "EGL_EXT_platform_base")) {
|
||||
wlr_log(WLR_ERROR, "EGL_EXT_platform_base not supported");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue