Merge pull request #690 from agx/eglCreateImageKHR

wlr_egl_create_image: return NULL when function is missing
This commit is contained in:
emersion 2018-02-28 08:55:37 +01:00 committed by GitHub
commit 73045a7d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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, EGLImage wlr_egl_create_image(struct wlr_egl *egl, EGLenum target,
EGLClientBuffer buffer, const EGLint *attribs) { EGLClientBuffer buffer, const EGLint *attribs) {
if (!eglCreateImageKHR) { if (!eglCreateImageKHR) {
return false; return NULL;
} }
return eglCreateImageKHR(egl->display, egl->context, target, return eglCreateImageKHR(egl->display, egl->context, target,