diff options
-rw-r--r-- | include/wlr/render/wlr_renderer.h | 1 | ||||
-rw-r--r-- | render/wlr_renderer.c | 7 |
2 files changed, 1 insertions, 7 deletions
diff --git a/include/wlr/render/wlr_renderer.h b/include/wlr/render/wlr_renderer.h index 8f4f61ee..26106614 100644 --- a/include/wlr/render/wlr_renderer.h +++ b/include/wlr/render/wlr_renderer.h @@ -41,7 +41,6 @@ struct wlr_renderer { const struct wlr_renderer_impl *impl; bool rendering; - bool rendering_with_buffer; }; /** 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, |