diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-08-28 16:22:43 -0400 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2023-09-21 02:25:34 -0400 |
commit | 98a745d926d8048bc30aef11b421df207a01c279 (patch) | |
tree | bd4ad317a526542efb26d703a3a101eb141fd293 | |
parent | e9706e62f550f81ca6cc1546aaa3660f654eeb9f (diff) |
render/pass: Remove empty box early return
-rw-r--r-- | render/pass.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/render/pass.c b/render/pass.c index a36b9dc1..243f780b 100644 --- a/render/pass.c +++ b/render/pass.c @@ -41,9 +41,6 @@ void wlr_render_pass_add_texture(struct wlr_render_pass *render_pass, void wlr_render_pass_add_rect(struct wlr_render_pass *render_pass, const struct wlr_render_rect_options *options) { assert(options->box.width >= 0 && options->box.height >= 0); - if (wlr_box_empty(&options->box)) { - return; - } render_pass->impl->add_rect(render_pass, options); } |