summaryrefslogtreecommitdiff
path: root/src/fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fb.c')
-rw-r--r--src/fb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fb.c b/src/fb.c
index c909f6a..f7076a3 100644
--- a/src/fb.c
+++ b/src/fb.c
@@ -191,6 +191,7 @@ static inline _fb_page_t * _fb_page_get(fb_t *fb)
pthread_mutex_unlock(&fb->inactive_mutex);
page->next = NULL;
+ page->public_page.fragment.zeroed = 0;
return page;
}
@@ -329,6 +330,7 @@ int fb_fragment_slice_single(const fb_fragment_t *fragment, unsigned n_fragments
res_fragment->stride = fragment->stride;
res_fragment->pitch = fragment->pitch;
res_fragment->number = number;
+ res_fragment->zeroed = fragment->zeroed;
return 1;
}
© All Rights Reserved