aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/wlr_renderer.c7
1 files changed, 1 insertions, 6 deletions
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,