Skip to content

Commit

Permalink
Finish buffer release thread in destroy_surface_context
Browse files Browse the repository at this point in the history
  • Loading branch information
szihs authored and Erik Kurzinger committed Jun 21, 2022
1 parent 53b6a87 commit bf86b94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wayland-eglsurface.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,7 @@ finish_wl_buffer_release_thread(WlEglSurface *surface)
surface->bufferReleaseThreadPipe[BUFFER_RELEASE_PIPE_READ] = -1;

wl_event_queue_destroy(surface->wlBufferEventQueue);
surface->wlBufferEventQueue = NULL;
}
}

Expand Down Expand Up @@ -491,6 +492,7 @@ destroy_surface_context(WlEglSurface *surface, WlEglSurfaceCtx *ctx)
uint32_t i;

finish_wl_eglstream_damage_thread(surface, ctx, 1);
finish_wl_buffer_release_thread(surface);

ctx->eglSurface = EGL_NO_SURFACE;
ctx->eglStream = EGL_NO_STREAM_KHR;
Expand Down

0 comments on commit bf86b94

Please sign in to comment.