Commit: 15c6348c2447d49fe2e2e3021a269ffad19c451e
Parent: f9b04bfbf3714a3be7309bedb15facd9f10c1b80
Author: Randy Palamar
Date: Tue, 10 Dec 2024 17:51:03 -0700
make test less zealous
we only need one dimension between x and y to be non zero
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ui.c b/ui.c
@@ -617,8 +617,7 @@ ui_can_start_compute(BeamformerCtx *ctx)
{
BeamformFrame *displayed = ctx->beamform_frames + ctx->displayed_frame_index;
b32 result = ctx->beamform_work_queue.compute_in_flight == 0;
- result &= displayed->dim.x != 0;
- result &= displayed->dim.y != 0;
+ result &= (displayed->dim.x != 0 || displayed->dim.y != 0);
result &= displayed->dim.z != 0;
return result;
}