Implement wlr_surface_flush_damage

This commit is contained in:
Drew DeVault 2017-08-10 08:26:16 -04:00
parent 947bb2e436
commit 7da43ff8b0
4 changed files with 47 additions and 17 deletions

View file

@ -42,6 +42,7 @@ void handle_output_frame(struct output_state *output, struct timespec *ts) {
float matrix[16];
wl_list_for_each(_res, &sample->compositor.surfaces, link) {
struct wlr_surface *surface = wl_resource_get_user_data(_res);
wlr_surface_flush_damage(surface);
if (surface->texture->valid) {
wlr_texture_get_matrix(surface->texture, &matrix,
&wlr_output->transform_matrix, 200, 200);