summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-04-27 18:02:54 +0200
committerraysan5 <[email protected]>2020-04-27 18:02:54 +0200
commit94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7 (patch)
treed9915669970b6f91251333efe1d543cbecb5f261 /src/shapes.c
parent6e2d39c51bc7a1ea382ab4179b74c882f2fd925c (diff)
downloadraylib-94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7.tar.gz
raylib-94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7.zip
Review issue with vertex batch overflow #1223
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c2
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);