mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-08 05:28:05 +02:00
simple-egl: move function call out of assert()
On Android, we have NDEBUG defined by the build system. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
e2949dba9b
commit
b79b635312
1 changed files with 3 additions and 2 deletions
|
|
@ -122,8 +122,9 @@ init_egl(struct display *display, EGLint alpha_size)
|
|||
ret = eglBindAPI(EGL_OPENGL_ES_API);
|
||||
assert(ret == EGL_TRUE);
|
||||
|
||||
assert(eglChooseConfig(display->egl.dpy, config_attribs,
|
||||
&display->egl.conf, 1, &n) && n == 1);
|
||||
ret = eglChooseConfig(display->egl.dpy, config_attribs,
|
||||
&display->egl.conf, 1, &n);
|
||||
assert(ret && n == 1);
|
||||
|
||||
display->egl.ctx = eglCreateContext(display->egl.dpy,
|
||||
display->egl.conf,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue