iOS Hard Crash with Draw.Polyline in Immediate draw mode
I am currently building for iOS using Shape immediate draw mode function.
using(var p = new PolylinePath())
{
p.AddPoints(drawCallback.verts);
SetDrawMatrix();
SetDrawZTest(drawCallback.zTest);
Draw.ThicknessSpace = drawCallback.thicknessSpace;
Draw.Polyline(p, drawCallback.thickness, drawCallback.color);
}
This would hard crash the app in iOS14.6. I am currently using IPAD pro 2021 for testing. The error message is:
_MTLDebugValidateIndexBuffer:267: failed assertion 'indexCount(0) must be non-zero.
The problem is fixed so far. Thanks a lot for the update!!