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

@ -644,7 +644,8 @@ x11_compositor_create(struct wl_display *display)
x11_compositor_init_egl(c);
/* Can't init base class until we have a current egl context */
wlsc_compositor_init(&c->base, display);
if (wlsc_compositor_init(&c->base, display) < 0)
return NULL;
x11_compositor_create_output(c, 1024, 640);