diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-08 20:25:36 -0400 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2018-06-08 20:25:36 -0400 |
commit | 18bbe2d897345fba022fb7032d6f285d67090dd6 (patch) | |
tree | 0d78d8d111b25b011aef8f12271b7cdb0e5bd3f1 /render | |
parent | 7f3ad497eb2a68f1c4b41843df6d9f669c7e1f10 (diff) |
Fix atti assert in wlr_egl_init
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 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); |