diff options
author | Guido Günther <agx@sigxcpu.org> | 2018-02-27 19:25:29 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2018-02-28 08:44:00 +0100 |
commit | d928ddc36c8987984ac253c8789e1b2546f774bc (patch) | |
tree | 6cc27ed70ec47fe3842c72de33d4ab25c2898fda /render | |
parent | 3296365ce591ae4ba115befa8134bc2526b36710 (diff) |
wlr_egl_create_image: return NULL when function is missing
This matches the return value of elgCreateImage in case of error.
Diffstat (limited to 'render')
-rw-r--r-- | render/egl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |