Watch
2
0
Fork
You've already forked raylib-cs
0

Fix bug with incorrect DrawTriangleStrip parameter

- It should take Vector2[] instead of a ref to Vector2 since it operates on multiple points.
This commit is contained in:
Rgebee 2020-11-04 21:22:20 +00:00
commit be43e6c76c

View file

@ -1640,7 +1640,7 @@ namespace Raylib_cs
// Draw a triangle strip defined by points
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void DrawTriangleStrip(ref Vector2 points, int pointsCount, Color color);
public static extern void DrawTriangleStrip(Vector2[] points, int pointsCount, Color color);
// Draw a regular polygon (Vector version)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]