From 07033cff904ef3a46ffd12e8f8235e06bdb1096d Mon Sep 17 00:00:00 2001 From: Maicon Santana Date: Wed, 24 Sep 2025 19:44:15 +0100 Subject: [PATCH] Fix polygon drawing example for opengl 1.1 (#5202) --- examples/textures/textures_polygon_drawing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/textures/textures_polygon_drawing.c b/examples/textures/textures_polygon_drawing.c index 8005ad1a1..ec1869d67 100644 --- a/examples/textures/textures_polygon_drawing.c +++ b/examples/textures/textures_polygon_drawing.c @@ -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);