aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-12-21 18:40:54 -0500
committerGitHub <noreply@github.com>2017-12-21 18:40:54 -0500
commit0a370c529806077a11638e7fa856d5fbb539496b (patch)
treeb00eb27649a61035af82b735673e6fd780862f9b /rootston
parent1a96ce0c53c84295d33b143e1b6cf02cb7017d50 (diff)
parent4cec7f54e24a58fd9756395ce64a5bd73f412c9e (diff)
Merge pull request #506 from acrisci/multi-backend-fixes
[wip] multibackend fixes
Diffstat (limited to 'rootston')
-rw-r--r--rootston/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/rootston/main.c b/rootston/main.c
index aa20dbba..161824d6 100644
--- a/rootston/main.c
+++ b/rootston/main.c
@@ -5,6 +5,7 @@
#include <wayland-server.h>
#include <wlr/backend.h>
#include <wlr/backend/headless.h>
+#include <wlr/backend/multi.h>
#include <wlr/render.h>
#include <wlr/render/gles2.h>
#include <wlr/util/log.h>
@@ -30,7 +31,13 @@ int main(int argc, char **argv) {
assert(server.wl_display = wl_display_create());
assert(server.wl_event_loop = wl_display_get_event_loop(server.wl_display));
- assert(server.backend = wlr_backend_autocreate(server.wl_display));
+ server.backend = wlr_backend_autocreate(server.wl_display);
+
+ if (server.backend == NULL) {
+ wlr_log(L_ERROR, "could not start backend");
+ wlr_backend_destroy(server.backend);
+ return 1;
+ }
assert(server.renderer = wlr_gles2_renderer_create(server.backend));
server.data_device_manager =