Merge pull request #1051 from RedSoxFan/fix-atti-assert

Fix atti assert in wlr_egl_init
This commit is contained in:
emersion 2018-06-09 08:06:24 +01:00 committed by GitHub
commit 9179b438a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);