Skip to content

Commit

Permalink
Shut down EGL preview correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
iizukanao committed Mar 25, 2024
1 parent 6051c5d commit ac9a871
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions preview/egl_preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ EglPreview::EglPreview(PicamOption const *options) : Preview(options), last_fd_(

EglPreview::~EglPreview()
{
EglPreview::Reset();
eglDestroyContext(egl_display_, egl_context_);
}

static void no_border(Display *display, Window window)
Expand Down

0 comments on commit ac9a871

Please sign in to comment.