From 725aa9d9a8e3da52f555d9bc7df7d59fad48e15e Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sat, 25 Oct 2025 22:22:31 +0200 Subject: [PATCH] Fix client crash at connection --- client/scenes/blitter.cpp | 8 ++++---- client/scenes/stream.cpp | 2 +- client/scenes/stream_defoveator.cpp | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client/scenes/blitter.cpp b/client/scenes/blitter.cpp index 2a8471d5..71cfd931 100644 --- a/client/scenes/blitter.cpp +++ b/client/scenes/blitter.cpp @@ -257,8 +257,8 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp VkBool32(alpha)); // Create graphics pipeline - vk::ShaderModule vertex_shader = *load_shader(device, "stream.vert"); - vk::ShaderModule fragment_shader = *load_shader(device, "stream.frag"); + auto vertex_shader = load_shader(device, "stream.vert"); + auto fragment_shader = load_shader(device, "stream.frag"); p.layout = device.createPipelineLayout(vk::PipelineLayoutCreateInfo{ .setLayoutCount = 1, @@ -268,13 +268,13 @@ void blitter::push_image(vk::raii::CommandBuffer & cmd, uint8_t stream, vk::Samp vk::pipeline_builder pipeline_info{ .Stages = {{ .stage = vk::ShaderStageFlagBits::eVertex, - .module = vertex_shader, + .module = *vertex_shader, .pName = "main", .pSpecializationInfo = vert_constants, }, { .stage = vk::ShaderStageFlagBits::eFragment, - .module = fragment_shader, + .module = *fragment_shader, .pName = "main", .pSpecializationInfo = frag_constants, }}, diff --git a/client/scenes/stream.cpp b/client/scenes/stream.cpp index 70c8610d..f85a02b1 100644 --- a/client/scenes/stream.cpp +++ b/client/scenes/stream.cpp @@ -406,7 +406,7 @@ void scenes::stream::on_focused() std::string profile = controller_name(); input.emplace( *this, - "controllers/" + profile + "/profile.json", + "assets://controllers/" + profile + "/profile.json", layer_controllers, layer_rays); diff --git a/client/scenes/stream_defoveator.cpp b/client/scenes/stream_defoveator.cpp index cdc96556..5e321e8b 100644 --- a/client/scenes/stream_defoveator.cpp +++ b/client/scenes/stream_defoveator.cpp @@ -120,25 +120,25 @@ stream_defoveator::pipeline_t & stream_defoveator::ensure_pipeline(size_t view, const auto & vk_device_extensions = application::get_vk_device_extensions(); // Vertex shader - vk::ShaderModule vertex_shader = *load_shader(device, "reprojection.vert"); + auto vertex_shader = load_shader(device, "reprojection.vert"); // Fragment shader auto specialization = make_specialization_constants( int32_t(alpha), VkBool32(need_srgb_conversion(guess_model()))); - vk::ShaderModule fragment_shader = *load_shader(device, "reprojection.frag"); + auto fragment_shader = load_shader(device, "reprojection.frag"); vk::pipeline_builder pipeline_info{ .flags = {}, .Stages = { { .stage = vk::ShaderStageFlagBits::eVertex, - .module = vertex_shader, + .module = *vertex_shader, .pName = "main", }, { .stage = vk::ShaderStageFlagBits::eFragment, - .module = fragment_shader, + .module = *fragment_shader, .pName = "main", .pSpecializationInfo = specialization, },