Some additional return value checking
This commit is contained in:
committed by
Kristian Høgsberg
parent
e9f5e36730
commit
55973f2f5a
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user