From 5b64e2fc31ede4777343e06087d7b921b28be674 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 26 Nov 2022 20:13:31 +0100 Subject: Make GLES2 optional --- sway/desktop/render.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'sway/desktop/render.c') diff --git a/sway/desktop/render.c b/sway/desktop/render.c index efa3a0d9..ea9c37d9 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1,11 +1,10 @@ #define _POSIX_C_SOURCE 200809L #include -#include #include #include #include #include -#include +#include #include #include #include @@ -28,6 +27,10 @@ #include "sway/tree/view.h" #include "sway/tree/workspace.h" +#if WLR_HAS_GLES2_RENDERER +#include +#endif + struct render_data { pixman_region32_t *damage; float alpha; @@ -74,6 +77,7 @@ static void scissor_output(struct wlr_output *wlr_output, static void set_scale_filter(struct wlr_output *wlr_output, struct wlr_texture *texture, enum scale_filter_mode scale_filter) { +#if WLR_HAS_GLES2_RENDERER if (!wlr_texture_is_gles2(texture)) { return; } @@ -94,6 +98,7 @@ static void set_scale_filter(struct wlr_output *wlr_output, case SCALE_FILTER_SMART: assert(false); // unreachable } +#endif } static void render_texture(struct wlr_output *wlr_output, -- cgit v1.2.3