diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapes.c b/src/shapes.c index 02c0eeb7..8b51af9a 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -1298,7 +1298,7 @@ void DrawTriangleStrip(Vector2 *points, int pointsCount, Color color) { if (pointsCount >= 3) { - if (rlCheckBufferLimit(pointsCount)) rlglDraw(); + if (rlCheckBufferLimit(3*(pointsCount - 2))) rlglDraw(); rlBegin(RL_TRIANGLES); rlColor4ub(color.r, color.g, color.b, color.a); |
