Skip to content
  • Per-Morten Straume's avatar
    Fix incorrect count in DrawMeshInstanced · bbbe4efc
    Per-Morten Straume authored
    The last Graphics.DrawMeshInstanced call is supposed to only render
    stragglers that don't fit in full batches. However, instead it 
    renders 1023 elements, rendering extra elements that shouldn't be there.
    This mistake was probably due to a copy and paste error.
    
    Fixed by introducing a stragglerCount to avoid calling % twice 
    and to give better clarity.
    bbbe4efc