aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2018-06-08 20:25:36 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-06-08 20:25:36 -0400
commit18bbe2d897345fba022fb7032d6f285d67090dd6 (patch)
tree0d78d8d111b25b011aef8f12271b7cdb0e5bd3f1 /render
parent7f3ad497eb2a68f1c4b41843df6d9f669c7e1f10 (diff)
Fix atti assert in wlr_egl_init
Diffstat (limited to 'render')
-rw-r--r--render/egl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/egl.c b/render/egl.c
index 7717b805..eafaebd7 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);