aboutsummaryrefslogtreecommitdiff
path: root/render/egl.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-28 08:55:37 +0100
committerGitHub <noreply@github.com>2018-02-28 08:55:37 +0100
commit73045a7d9dd4d26a02d5c6b9ea9013f1e938e61d (patch)
treec822962d0c02b3183d292aa615de69d7b53abaa8 /render/egl.c
parent75a7340a27f7f179b13fe3fad1b8b6f5f8c41e25 (diff)
parentd928ddc36c8987984ac253c8789e1b2546f774bc (diff)
Merge pull request #690 from agx/eglCreateImageKHR
wlr_egl_create_image: return NULL when function is missing
Diffstat (limited to 'render/egl.c')
-rw-r--r--render/egl.c2
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,