mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
Merge branch 'build-errors' into 'master'
Fix build errors with -Werror and NDEBUG See merge request wlroots/wlroots!4557
This commit is contained in:
commit
ccf98e44cd
9 changed files with 33 additions and 38 deletions
|
|
@ -18,8 +18,8 @@ void wlr_render_pass_add_texture(struct wlr_render_pass *render_pass,
|
|||
const struct wlr_render_texture_options *options) {
|
||||
// make sure the texture source box does not try and sample outside of the
|
||||
// texture
|
||||
if (!wlr_fbox_empty(&options->src_box)) {
|
||||
const struct wlr_fbox *box = &options->src_box;
|
||||
const struct wlr_fbox *box = &options->src_box;
|
||||
if (!wlr_fbox_empty(box)) {
|
||||
assert(box->x >= 0 && box->y >= 0 &&
|
||||
box->x + box->width <= options->texture->width &&
|
||||
box->y + box->height <= options->texture->height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue