diff options
| author | Ray <[email protected]> | 2016-10-02 23:04:46 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2016-10-02 23:04:46 +0200 |
| commit | 2ae9ce29eb254870fc82d106027bd4c561e74af8 (patch) | |
| tree | a02a7ca84a85fe21a48187837c3af70b5dcbeca5 /src | |
| parent | 978c49472a1cdffa0bf12aba1638806c65e3f8ba (diff) | |
| download | raylib-2ae9ce29eb254870fc82d106027bd4c561e74af8.tar.gz raylib-2ae9ce29eb254870fc82d106027bd4c561e74af8.zip | |
Corrected issue on DrawPolyEx()
Diffstat (limited to 'src')
| -rw-r--r-- | src/shapes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shapes.c b/src/shapes.c index 6200a823..362dc0f7 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -347,11 +347,11 @@ void DrawPolyEx(Vector2 *points, int numPoints, Color color) rlBegin(RL_TRIANGLES); rlColor4ub(color.r, color.g, color.b, color.a); - for (int i = 0; i < numPoints - 2; i++) + for (int i = 1; i < numPoints - 1; i++) { + rlVertex2f(points[0].x, points[0].y); rlVertex2f(points[i].x, points[i].y); rlVertex2f(points[i + 1].x, points[i + 1].y); - rlVertex2f(points[i + 2].x, points[i + 2].y); } rlEnd(); } |
