Fail if we can't create the compositor.

dev
Kristian Høgsberg 16 years ago
parent 122912c69b
commit 841883b43c
  1. 4
      egl-compositor.c
  2. 4
      glx-compositor.c

@ -1035,6 +1035,10 @@ int main(int argc, char *argv[])
display = wl_display_create();
ec = egl_compositor_create(display);
if (ec == NULL) {
fprintf(stderr, "failed to create compositor\n");
exit(EXIT_FAILURE);
}
wl_display_set_compositor(display, &ec->base);

@ -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…
Cancel
Save