Fix polygon drawing example for opengl 1.1

This commit is contained in:
maiconpintoabreu 2025-09-24 14:09:19 +01:00
parent 2554dcba9b
commit d269b94efd

View File

@ -115,9 +115,9 @@ int main(void)
// without crossing perimeter, points must be in anticlockwise order
void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointCount, Color tint)
{
rlSetTexture(texture.id);
rlBegin(RL_TRIANGLES);
rlSetTexture(texture.id);
rlColor4ub(tint.r, tint.g, tint.b, tint.a);