From 66c360d385a92a1f3c4a1b6f7e51193e80ee5945 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 19 Dec 2018 11:55:58 +0100 Subject: [PATCH] Corrected issue on plane drawing --- src/models.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/models.c b/src/models.c index c837f080..4efde340 100644 --- a/src/models.c +++ b/src/models.c @@ -520,14 +520,11 @@ void DrawPlane(Vector3 centerPos, Vector2 size, Color color) rlTranslatef(centerPos.x, centerPos.y, centerPos.z); rlScalef(size.x, 1.0f, size.y); - rlBegin(RL_TRIANGLES); + rlBegin(RL_QUADS); rlColor4ub(color.r, color.g, color.b, color.a); rlNormal3f(0.0f, 1.0f, 0.0f); - rlVertex3f(0.5f, 0.0f, -0.5f); rlVertex3f(-0.5f, 0.0f, -0.5f); - rlVertex3f(-0.5f, 0.0f, 0.5f); - rlVertex3f(-0.5f, 0.0f, 0.5f); rlVertex3f(0.5f, 0.0f, 0.5f); rlVertex3f(0.5f, 0.0f, -0.5f);