Skip to content

Commit

Permalink
egl_gbm_render_surface: fix initialization of is_locked (#363)
Browse files Browse the repository at this point in the history
Only the first locked_fbs' is_locked was initialized.
  • Loading branch information
mizo authored Sep 22, 2023
1 parent d62e843 commit 4e9b44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/egl_gbm_render_surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e9b44b

Please sign in to comment.