From e898526afb5fb341a4bb7c408f0bdcbf4b8ffbdb Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 27 Jan 2019 19:28:15 +0000 Subject: [PATCH] Add glx_backend to backend_list Signed-off-by: Yuxuan Shui --- src/backend/backend.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/backend/backend.c b/src/backend/backend.c index 0bbc095..aa959bd 100644 --- a/src/backend/backend.c +++ b/src/backend/backend.c @@ -7,7 +7,12 @@ #include "common.h" #include "compiler.h" -backend_info_t *backend_list[NUM_BKEND] = {[BKEND_XRENDER] = &xrender_backend}; +backend_info_t *backend_list[NUM_BKEND] = { + [BKEND_XRENDER] = &xrender_backend, +#ifdef CONFIG_OPENGL + [BKEND_GLX] = &glx_backend, +#endif +}; bool default_is_win_transparent(void *backend_data, win *w, void *win_data) { return w->mode != WMODE_SOLID;