From 18bbe2d897345fba022fb7032d6f285d67090dd6 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Fri, 8 Jun 2018 20:25:36 -0400 Subject: [PATCH] Fix atti assert in wlr_egl_init --- render/egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/egl.c b/render/egl.c index 7717b8054..eafaebd71 100644 --- a/render/egl.c +++ b/render/egl.c @@ -190,7 +190,7 @@ bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *remote_display, } attribs[atti++] = EGL_NONE; - assert(atti < sizeof(attribs)/sizeof(attribs[0])); + assert(atti <= sizeof(attribs)/sizeof(attribs[0])); egl->context = eglCreateContext(egl->display, egl->config, EGL_NO_CONTEXT, attribs);