mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-17 06:59:46 -05:00
Some additional return value checking
This commit is contained in:
parent
e9f5e36730
commit
55973f2f5a
3 changed files with 23 additions and 8 deletions
|
|
@ -339,7 +339,11 @@ init_egl(struct drm_compositor *ec, struct udev_device *device)
|
|||
return -1;
|
||||
}
|
||||
|
||||
eglBindAPI(EGL_OPENGL_ES_API);
|
||||
if (!eglBindAPI(EGL_OPENGL_ES_API)) {
|
||||
fprintf(stderr, "failed to bind api EGL_OPENGL_ES_API\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
ec->base.context = eglCreateContext(ec->base.display, NULL,
|
||||
EGL_NO_CONTEXT, context_attribs);
|
||||
if (ec->base.context == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue