mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
Rename release label
This commit is contained in:
parent
36b4465eb9
commit
67f0c3ca42
1 changed files with 3 additions and 3 deletions
|
@ -359,7 +359,7 @@ static void wlr_surface_flush_damage(struct wlr_surface *surface,
|
||||||
if (wlr_renderer_buffer_is_drm(surface->renderer,
|
if (wlr_renderer_buffer_is_drm(surface->renderer,
|
||||||
surface->current->buffer)) {
|
surface->current->buffer)) {
|
||||||
wlr_texture_upload_drm(surface->texture, surface->current->buffer);
|
wlr_texture_upload_drm(surface->texture, surface->current->buffer);
|
||||||
goto release;
|
goto clear_damage;
|
||||||
} else {
|
} else {
|
||||||
wlr_log(L_INFO, "Unknown buffer handle attached");
|
wlr_log(L_INFO, "Unknown buffer handle attached");
|
||||||
return;
|
return;
|
||||||
|
@ -372,7 +372,7 @@ static void wlr_surface_flush_damage(struct wlr_surface *surface,
|
||||||
} else {
|
} else {
|
||||||
pixman_region32_t damage = surface->current->buffer_damage;
|
pixman_region32_t damage = surface->current->buffer_damage;
|
||||||
if (!pixman_region32_not_empty(&damage)) {
|
if (!pixman_region32_not_empty(&damage)) {
|
||||||
goto release;
|
goto clear_damage;
|
||||||
}
|
}
|
||||||
int n;
|
int n;
|
||||||
pixman_box32_t *rects = pixman_region32_rectangles(&damage, &n);
|
pixman_box32_t *rects = pixman_region32_rectangles(&damage, &n);
|
||||||
|
@ -388,7 +388,7 @@ static void wlr_surface_flush_damage(struct wlr_surface *surface,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
release:
|
clear_damage:
|
||||||
pixman_region32_clear(&surface->current->surface_damage);
|
pixman_region32_clear(&surface->current->surface_damage);
|
||||||
pixman_region32_clear(&surface->current->buffer_damage);
|
pixman_region32_clear(&surface->current->buffer_damage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue