From d928ddc36c8987984ac253c8789e1b2546f774bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 27 Feb 2018 19:25:29 +0100 Subject: [PATCH] wlr_egl_create_image: return NULL when function is missing This matches the return value of elgCreateImage in case of error. --- render/egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/egl.c b/render/egl.c index 21c446f1..fed556f8 100644 --- a/render/egl.c +++ b/render/egl.c @@ -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,