Propagate shader compile/link errors

And silence the no-error case.
This commit is contained in:
Kristian Høgsberg 2010-06-14 21:03:11 -04:00
parent bf6ceda545
commit a946821b4f
3 changed files with 28 additions and 10 deletions

View file

@ -662,7 +662,8 @@ drm_compositor_create(struct wl_display *display)
}
/* Can't init base class until we have a current egl context */
wlsc_compositor_init(&ec->base, display);
if (wlsc_compositor_init(&ec->base, display) < 0)
return NULL;
if (create_outputs(ec) < 0) {
fprintf(stderr, "failed to create output for %s\n", path);