From 762b7d5e1dbb3d38145f6e744e094c078f933756 Mon Sep 17 00:00:00 2001 From: Bigfoot71 Date: Sun, 23 Jun 2024 20:18:57 +0200 Subject: [PATCH] remove unnecessary check --- src/rtextures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rtextures.c b/src/rtextures.c index 5a35465a8..1082defdd 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -3793,7 +3793,7 @@ void ImageDrawTriangleLines(Image *dst, Vector2 v1, Vector2 v2, Vector2 v3, Colo // Draw a triangle fan defined by points within an image (first vertex is the center) void ImageDrawTriangleFan(Image *dst, Vector2 *points, int pointCount, Color color) { - if (pointCount >= 3 && (pointCount%3) == 0) + if (pointCount >= 3) { for (int i = 1; i < pointCount; i++) { @@ -3805,7 +3805,7 @@ void ImageDrawTriangleFan(Image *dst, Vector2 *points, int pointCount, Color col // Draw a triangle strip defined by points within an image void ImageDrawTriangleStrip(Image *dst, Vector2 *points, int pointCount, Color color) { - if (pointCount >= 3 && (pointCount%3) == 0) + if (pointCount >= 3) { for (int i = 2; i < pointCount; i++) {