mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-14 06:59:46 -05:00
Fail if we can't create the compositor.
This commit is contained in:
parent
122912c69b
commit
841883b43c
2 changed files with 9 additions and 1 deletions
|
|
@ -362,6 +362,10 @@ int main(int argc, char *argv[])
|
|||
display = wl_display_create();
|
||||
|
||||
gc = glx_compositor_create(display);
|
||||
if (gc == NULL) {
|
||||
fprintf(stderr, "failed to create compositor\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
wl_display_set_compositor(display, &gc->base);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue