Fix a copy-paste error in weston_surface_commit_state
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Sep 2014 16:01:28 +0000 (09:01 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 6 Sep 2014 16:01:28 +0000 (09:01 -0700)
src/compositor.c

index 20ff6b2..801d074 100644 (file)
@@ -2249,7 +2249,7 @@ weston_surface_commit_state(struct weston_surface *surface,
                              &state->damage);
        pixman_region32_intersect_rect(&surface->damage, &surface->damage,
                                       0, 0, surface->width, surface->height);
-       pixman_region32_clear(&surface->pending.damage);
+       pixman_region32_clear(&state->damage);
 
        /* wl_surface.set_opaque_region */
        pixman_region32_init(&opaque);