Fix client crash at connection

This commit is contained in:
Guillaume Meunier
2025-10-25 22:42:00 +02:00
parent 24d718f916
commit 725aa9d9a8
3 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -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,
}},
+1 -1
View File
@@ -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);
+4 -4
View File
@@ -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,
},