From 53a4e38a2fd33fc018e6725bdf18cc868c351ad8 Mon Sep 17 00:00:00 2001 From: Mike Date: Wed, 24 Apr 2024 23:50:41 +0800 Subject: [PATCH] fix lifetime --- src/textures/bump2normal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/bump2normal.cpp b/src/textures/bump2normal.cpp index 9cdac617..7ca9654b 100644 --- a/src/textures/bump2normal.cpp +++ b/src/textures/bump2normal.cpp @@ -212,7 +212,7 @@ luisa::unique_ptr Bump2NormalTexture::build( }; auto normal_shader = pipeline.device().compile<2>(normal_kernel); command_buffer << normal_shader(dx_tex_id, dy_tex_id, *normal).dispatch(resolution_scaled) - << commit(); + << synchronize(); auto normal_map_tex_id = pipeline.register_bindless(*normal, sampler); return luisa::make_unique(pipeline, this, normal_map_tex_id);