aboutsummaryrefslogtreecommitdiff
path: root/src/wterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wterm.c')
-rw-r--r--src/wterm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wterm.c b/src/wterm.c
index c655722..d9ec02e 100644
--- a/src/wterm.c
+++ b/src/wterm.c
@@ -2953,7 +2953,7 @@ void wlinit(void) {
if (!wld.ctx)
die("Can't create wayland context\n");
wld.renderer = wld_create_renderer(wld.ctx);
- if (!wld.ctx)
+ if (!wld.ctx || !wld.renderer)
die("Can't create renderer\n");
if (!wl.shm)
die("Display has no SHM\n");