Skip to content

Commit

Permalink
Merge pull request #82679 from lyuma/workaround_xr_off_crash
Browse files Browse the repository at this point in the history
Workaround crash due to null shader when running XR project with `--xr-mode` off
  • Loading branch information
akien-mga committed Oct 4, 2023
2 parents d92c020 + 1d34033 commit 146d87c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/vulkan/rendering_device_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5054,6 +5054,7 @@ RID RenderingDeviceVulkan::shader_create_from_bytecode(const Vector<uint8_t> &p_
}

Shader *shader = shader_owner.get_or_null(id);
ERR_FAIL_NULL_V(shader, RID());

shader->vertex_input_mask = vertex_input_mask;
shader->fragment_output_mask = fragment_output_mask;
Expand Down

0 comments on commit 146d87c

Please sign in to comment.