diff options
| author | Devin J. Pohly <djpohly@gmail.com> | |
|---|---|---|
| 2020-08-18 19:43:42 -0500 | ||
| committer | Devin J. Pohly <djpohly@gmail.com> | |
| 2020-08-18 19:43:42 -0500 | ||
| commit | ad9b3bc65d9e4802d2982bf09938783cfb7ee1b3 (patch) | |
| tree | 9480529ef4b522e4627faa8d27c22669bd8a2212 | |
| parent | 83f60e89b0ce395511a91f3f1944015668730758 (diff) | |
| download | dwl-ad9b3bc65d9e4802d2982bf09938783cfb7ee1b3.tar.gz dwl-ad9b3bc65d9e4802d2982bf09938783cfb7ee1b3.tar.bz2 dwl-ad9b3bc65d9e4802d2982bf09938783cfb7ee1b3.zip | |
handle NULL return from backend_autocreate
Fixes #44.
@@ -1460,7 +1460,8 @@ setup(void) * backend uses the renderer, for example, to fall back to software cursors * if the backend does not support hardware cursors (some older GPUs * don't). */ - backend = wlr_backend_autocreate(dpy, NULL); + if (!(backend = wlr_backend_autocreate(dpy, NULL))) + BARF("couldn't create backend"); /* If we don't provide a renderer, autocreate makes a GLES2 renderer for us. * The renderer is responsible for defining the various pixel formats it |