projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2949db
)
simple-egl: move function call out of assert()
author
Pekka Paalanen
<ppaalanen@gmail.com>
Tue, 12 Jun 2012 14:42:24 +0000
(17:42 +0300)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 12 Jun 2012 16:28:16 +0000
(12:28 -0400)
On Android, we have NDEBUG defined by the build system.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-egl.c
patch
|
blob
|
history
diff --git
a/clients/simple-egl.c
b/clients/simple-egl.c
index
5dd44f9
..
4cb5bc7
100644
(file)
--- a/
clients/simple-egl.c
+++ b/
clients/simple-egl.c
@@
-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,