diff options
| author | raysan5 <[email protected]> | 2020-04-27 18:02:54 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-04-27 18:02:54 +0200 |
| commit | 94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7 (patch) | |
| tree | d9915669970b6f91251333efe1d543cbecb5f261 /src/shapes.c | |
| parent | 6e2d39c51bc7a1ea382ab4179b74c882f2fd925c (diff) | |
| download | raylib-94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7.tar.gz raylib-94ab5e2aabb4a1cc392c711bc9ce0ab3edd03bf7.zip | |
Review issue with vertex batch overflow #1223
Diffstat (limited to 'src/shapes.c')
| -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); |
