remove unnecessary check
This commit is contained in:
parent
0e1065d9e7
commit
762b7d5e1d
|
|
@ -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++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user