diff options
author | emersion <contact@emersion.fr> | 2017-10-11 14:02:41 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-10-11 14:02:41 +0200 |
commit | 67f0c3ca427343fab26a8340296c3f95b062916f (patch) | |
tree | ab447b68b179686c0f55a87560a927972d137385 | |
parent | 36b4465eb988621847bc8e83490e7a3b26ea34be (diff) |
Rename release label
-rw-r--r-- | types/wlr_surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index 1432c120..4c433184 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -359,7 +359,7 @@ static void wlr_surface_flush_damage(struct wlr_surface *surface, if (wlr_renderer_buffer_is_drm(surface->renderer, surface->current->buffer)) { wlr_texture_upload_drm(surface->texture, surface->current->buffer); - goto release; + goto clear_damage; } else { wlr_log(L_INFO, "Unknown buffer handle attached"); return; @@ -372,7 +372,7 @@ static void wlr_surface_flush_damage(struct wlr_surface *surface, } else { pixman_region32_t damage = surface->current->buffer_damage; if (!pixman_region32_not_empty(&damage)) { - goto release; + goto clear_damage; } int 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->buffer_damage); } |