From d7ecdad4e082cb5817806348de198679a11b35df Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Wed, 29 Nov 2023 15:28:00 -0500 Subject: render: Drop rendering_with_buffer This is always true now that we can only render with a buffer. --- render/wlr_renderer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'render') diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index b2258fce..4fb3dfa9 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -81,7 +81,6 @@ bool wlr_renderer_begin_with_buffer(struct wlr_renderer *r, } r->rendering = true; - r->rendering_with_buffer = true; return true; } @@ -93,11 +92,7 @@ void wlr_renderer_end(struct wlr_renderer *r) { } r->rendering = false; - - if (r->rendering_with_buffer) { - renderer_bind_buffer(r, NULL); - r->rendering_with_buffer = false; - } + renderer_bind_buffer(r, NULL); } const uint32_t *wlr_renderer_get_shm_texture_formats(struct wlr_renderer *r, -- cgit v1.2.3