diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2022-08-20 05:32:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 05:32:28 +0200 |
commit | 5e0d2b5097d5091490f6ca84c5e9188c4ebefa4b (patch) | |
tree | 29b5b599efcc072253b6686068e259a971973b48 /drivers/vulkan/rendering_device_vulkan.cpp | |
parent | 47d3fd99a2515345229d9d247b79eb36d0f67884 (diff) | |
parent | bbbcdd725ac8786722b6d327be5ae91344ec7d96 (diff) |
Merge pull request #62046 from clayjohn/vertexless-draw
Allow creating meshes without vertex positions
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-rw-r--r-- | drivers/vulkan/rendering_device_vulkan.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp index bcb6092d87..2debba1b83 100644 --- a/drivers/vulkan/rendering_device_vulkan.cpp +++ b/drivers/vulkan/rendering_device_vulkan.cpp @@ -7805,12 +7805,6 @@ void RenderingDeviceVulkan::draw_list_draw(DrawListID p_list, bool p_use_indices ERR_FAIL_COND_MSG(!dl->validation.index_array_size, "Draw command requested indices, but no index buffer was set."); - if (dl->validation.pipeline_vertex_format != INVALID_ID) { - // Uses vertices, do some vertex validations. - ERR_FAIL_COND_MSG(dl->validation.vertex_array_size < dl->validation.index_array_max_index, - "Index array references (max index: " + itos(dl->validation.index_array_max_index) + ") indices beyond the vertex array size (" + itos(dl->validation.vertex_array_size) + ")."); - } - ERR_FAIL_COND_MSG(dl->validation.pipeline_uses_restart_indices != dl->validation.index_buffer_uses_restart_indices, "The usage of restart indices in index buffer does not match the render primitive in the pipeline."); #endif |