aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-06-09 08:06:24 +0100
committerGitHub <noreply@github.com>2018-06-09 08:06:24 +0100
commit9179b438a596943f78dd2f7c27086c3116b26b01 (patch)
tree0d78d8d111b25b011aef8f12271b7cdb0e5bd3f1
parent7f3ad497eb2a68f1c4b41843df6d9f669c7e1f10 (diff)
parent18bbe2d897345fba022fb7032d6f285d67090dd6 (diff)
Merge pull request #1051 from RedSoxFan/fix-atti-assert
Fix atti assert in wlr_egl_init
-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);