From 4e9b44bcb332547c05b728687edf895847eb0aa9 Mon Sep 17 00:00:00 2001 From: mizo Date: Fri, 22 Sep 2023 20:17:07 +0900 Subject: [PATCH] egl_gbm_render_surface: fix initialization of is_locked (#363) Only the first locked_fbs' is_locked was initialized. --- src/egl_gbm_render_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl_gbm_render_surface.c b/src/egl_gbm_render_surface.c index c5385238..ce9e5e7f 100644 --- a/src/egl_gbm_render_surface.c +++ b/src/egl_gbm_render_surface.c @@ -239,7 +239,7 @@ static int egl_gbm_render_surface_init( s->egl_config = egl_config; s->renderer = gl_renderer_ref(renderer); for (int i = 0; i < ARRAY_SIZE(s->locked_fbs); i++) { - s->locked_fbs->is_locked = (atomic_flag) ATOMIC_FLAG_INIT; + s->locked_fbs[i].is_locked = (atomic_flag) ATOMIC_FLAG_INIT; } s->locked_front_fb = NULL; #ifdef DEBUG