mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -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
|
|
@ -1463,7 +1463,10 @@ display_create(int *argc, char **argv[], const GOptionEntry *option_entries)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
eglBindAPI(EGL_OPENGL_API);
|
||||
if (!eglBindAPI(EGL_OPENGL_API)) {
|
||||
fprintf(stderr, "failed to bind api EGL_OPENGL_API\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
d->ctx = eglCreateContext(d->dpy, NULL, EGL_NO_CONTEXT, NULL);
|
||||
if (d->ctx == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue