From be43e6c76c6b4d4d8174d50a4b9a7ba443539c96 Mon Sep 17 00:00:00 2001 From: ChrisDill Date: Wed, 4 Nov 2020 21:22:20 +0000 Subject: [PATCH] Fix bug with incorrect DrawTriangleStrip parameter - It should take Vector2[] instead of a ref to Vector2 since it operates on multiple points. --- Raylib-cs/Raylib.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Raylib-cs/Raylib.cs b/Raylib-cs/Raylib.cs index 3cae5f5..45ed461 100644 --- a/Raylib-cs/Raylib.cs +++ b/Raylib-cs/Raylib.cs @@ -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)]