ogl_beamforming

Ultrasound Beamforming Implemented with OpenGL
git clone anongit@rnpnr.xyz:ogl_beamforming.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

Commit: 04fd49426065a61d08afbe5c1f3cea9cda7b0b28
Parent: 85a084f7329a4c19f01efe2ad9bbbdf115307079
Author: Randy Palamar
Date:   Fri, 27 Jun 2025 22:02:48 -0600

static: set user_context before starting worker thread

I'm not sure how this went unnoticed for so long but anyways...

Diffstat:
Mstatic.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/static.c b/static.c @@ -269,11 +269,11 @@ setup_beamformer(BeamformerCtx *ctx, BeamformerInput *input, Arena *memory) validate_gl_requirements(&ctx->gl, *memory); GLWorkerThreadContext *worker = &ctx->os.compute_worker; + /* TODO(rnp): we should lock this down after we have something working */ + worker->user_context = (iptr)ctx; worker->window_handle = glfwCreateWindow(320, 240, "", 0, raylib_window_handle); worker->handle = os_create_thread(*memory, (iptr)worker, s8("[compute]"), compute_worker_thread_entry_point); - /* TODO(rnp): we should lock this down after we have something working */ - worker->user_context = (iptr)ctx; glfwMakeContextCurrent(raylib_window_handle);