mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-22 05:34:24 -04:00
render/pass: Remove empty box early return
This commit is contained in:
parent
e9706e62f5
commit
98a745d926
1 changed files with 0 additions and 3 deletions
|
|
@ -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,
|
void wlr_render_pass_add_rect(struct wlr_render_pass *render_pass,
|
||||||
const struct wlr_render_rect_options *options) {
|
const struct wlr_render_rect_options *options) {
|
||||||
assert(options->box.width >= 0 && options->box.height >= 0);
|
assert(options->box.width >= 0 && options->box.height >= 0);
|
||||||
if (wlr_box_empty(&options->box)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
render_pass->impl->add_rect(render_pass, options);
|
render_pass->impl->add_rect(render_pass, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue