aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_renderer.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-11-29 15:28:00 -0500
committerAlexander Orzechowski <alex@ozal.ski>2023-11-29 16:00:24 -0500
commitd7ecdad4e082cb5817806348de198679a11b35df (patch)
treead0e65561954d5068d35de465285f9c90261bc48 /render/wlr_renderer.c
parent7702a197394bb191858e3a8dae9a0b4b5a1a262e (diff)
render: Drop rendering_with_buffer
This is always true now that we can only render with a buffer.
Diffstat (limited to 'render/wlr_renderer.c')
-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,