mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
wlr_egl_create_image: return NULL when function is missing
This matches the return value of elgCreateImage in case of error.
This commit is contained in:
parent
3296365ce5
commit
d928ddc36c
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ bool wlr_egl_query_buffer(struct wlr_egl *egl, struct wl_resource *buf,
|
|||
EGLImage wlr_egl_create_image(struct wlr_egl *egl, EGLenum target,
|
||||
EGLClientBuffer buffer, const EGLint *attribs) {
|
||||
if (!eglCreateImageKHR) {
|
||||
return false;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return eglCreateImageKHR(egl->display, egl->context, target,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue