|
|
@ -519,6 +519,9 @@ wayland_compositor_create(struct wl_display *display, int width, int height) |
|
|
|
c->base.present = wayland_compositor_present; |
|
|
|
c->base.present = wayland_compositor_present; |
|
|
|
c->base.create_buffer = wlsc_drm_buffer_create; |
|
|
|
c->base.create_buffer = wlsc_drm_buffer_create; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
glGenFramebuffers(1, &c->base.fbo); |
|
|
|
|
|
|
|
glBindFramebuffer(GL_FRAMEBUFFER, c->base.fbo); |
|
|
|
|
|
|
|
|
|
|
|
/* Can't init base class until we have a current egl context */ |
|
|
|
/* Can't init base class until we have a current egl context */ |
|
|
|
if (wlsc_compositor_init(&c->base, display) < 0) |
|
|
|
if (wlsc_compositor_init(&c->base, display) < 0) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|