From: Seunghun Lee Date: Thu, 15 Jun 2023 00:53:31 +0000 (+0900) Subject: surface: Initialize current commit state before update X-Git-Tag: accepted/tizen/unified/20230720.164642~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd48c0c93284d607f55a2af1bf2ad5396ea78b09;p=platform%2Fcore%2Fuifw%2Flibds.git surface: Initialize current commit state before update Since the current state is used to distinguish updated fields, the current state has to be initialied instead of accumulating. Change-Id: Ibbed13100b949993a2d230200950c99cda4cc174 --- diff --git a/src/compositor/surface.c b/src/compositor/surface.c index aa3c9fa..342378f 100644 --- a/src/compositor/surface.c +++ b/src/compositor/surface.c @@ -378,6 +378,7 @@ surface_commit_state(struct ds_surface *surface, struct ds_surface_state *next) surface->sy += next->dy; surface_update_damage(&surface->buffer_damage, &surface->current, next); + surface->current.committed = 0; surface_state_move(&surface->current, next); // FIXME no need?