Fix mesh 2d non indexed draw. (#15155)
Closes #15154. Looks like 2d was just missed in
d235d41af1
.

This commit is contained in:
parent
327e1ddba4
commit
1fd478277e
@ -871,7 +871,7 @@ impl<P: PhaseItem> RenderCommand<P> for DrawMesh2d {
|
||||
);
|
||||
}
|
||||
RenderMeshBufferInfo::NonIndexed => {
|
||||
pass.draw(0..gpu_mesh.vertex_count, batch_range.clone());
|
||||
pass.draw(vertex_buffer_slice.range, batch_range.clone());
|
||||
}
|
||||
}
|
||||
RenderCommandResult::Success
|
||||
|
@ -300,7 +300,7 @@ impl<P: PhaseItem> RenderCommand<P> for DrawMeshInstanced {
|
||||
);
|
||||
}
|
||||
RenderMeshBufferInfo::NonIndexed => {
|
||||
pass.draw(0..gpu_mesh.vertex_count, 0..instance_buffer.length as u32);
|
||||
pass.draw(vertex_buffer_slice.range, 0..instance_buffer.length as u32);
|
||||
}
|
||||
}
|
||||
RenderCommandResult::Success
|
||||
|
Loading…
Reference in New Issue
Block a user