From 67f0c3ca427343fab26a8340296c3f95b062916f Mon Sep 17 00:00:00 2001 From: emersion Date: Wed, 11 Oct 2017 14:02:41 +0200 Subject: Rename release label --- types/wlr_surface.c | 6 +++--- 1 file 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); } -- cgit v1.2.3