diff options
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index 2b5cf994..478db745 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -39,6 +39,8 @@ void wlr_renderer_init(struct wlr_renderer *renderer, assert(impl->render_quad_with_matrix); assert(impl->get_shm_texture_formats); assert(impl->get_render_buffer_caps); + + memset(renderer, 0, sizeof(*renderer)); renderer->impl = impl; wl_signal_init(&renderer->events.destroy); |