remove unnecessary check

This commit is contained in:
Bigfoot71 2024-06-23 20:18:57 +02:00
parent 0e1065d9e7
commit 762b7d5e1d

View File

@ -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) // 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) 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++) 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 // Draw a triangle strip defined by points within an image
void ImageDrawTriangleStrip(Image *dst, Vector2 *points, int pointCount, Color color) 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++) for (int i = 2; i < pointCount; i++)
{ {