forgot to change this back to use whatever primitive type is given.

This commit is contained in:
Harrison Deng 2019-02-11 23:26:46 -06:00
parent b072701a22
commit cec8ff1f17

View File

@ -112,7 +112,7 @@ namespace RecrownedAthenaeum.Render
if (!began) throw new InvalidOperationException("Begin needs to be called before flushing.");
if (disposed) throw new ObjectDisposedException(this.GetType().Name);
if (bufferPosition == 0) return;
graphicsDevice.DrawUserPrimitives(PrimitiveType.LineStrip, vertices, 0, bufferPosition / verticesPerPrimitive);
graphicsDevice.DrawUserPrimitives(primitiveType, vertices, 0, bufferPosition / verticesPerPrimitive);
bufferPosition = 0;
}