mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render: ensure wlr_render_rect_options->box is nonempty
This optimization also fixes an validation error with the Vulkan renderer by ensuring vkCmdClearAttachments does not receive empty regions.
This commit is contained in:
parent
e5fc8cd4c7
commit
a94168b5fe
2 changed files with 4 additions and 0 deletions
|
|
@ -76,6 +76,7 @@ struct wlr_render_pass_impl {
|
|||
bool (*submit)(struct wlr_render_pass *pass);
|
||||
void (*add_texture)(struct wlr_render_pass *pass,
|
||||
const struct wlr_render_texture_options *options);
|
||||
/* Implementers are also guaranteed that options->box is nonempty */
|
||||
void (*add_rect)(struct wlr_render_pass *pass,
|
||||
const struct wlr_render_rect_options *options);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue