Skip to content

Commit 07033cf

Browse files
Fix polygon drawing example for opengl 1.1 (#5202)
1 parent 2554dcb commit 07033cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/textures/textures_polygon_drawing.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ int main(void)
115115
// without crossing perimeter, points must be in anticlockwise order
116116
void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2 *texcoords, int pointCount, Color tint)
117117
{
118+
rlSetTexture(texture.id);
118119
rlBegin(RL_TRIANGLES);
119120

120-
rlSetTexture(texture.id);
121121

122122
rlColor4ub(tint.r, tint.g, tint.b, tint.a);
123123

0 commit comments

Comments
 (0)