Skip to content

Commit

Permalink
fix lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Apr 24, 2024
1 parent 1a1acd1 commit 53a4e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/bump2normal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ luisa::unique_ptr<Texture::Instance> 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<Bump2NormalTextureInstance>(pipeline, this, normal_map_tex_id);
Expand Down

0 comments on commit 53a4e38

Please sign in to comment.