summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2018-12-19 11:55:58 +0100
committerRay <[email protected]>2018-12-19 11:55:58 +0100
commit66c360d385a92a1f3c4a1b6f7e51193e80ee5945 (patch)
treeb2b8a6e5023502135bddd2c751f3945498325679 /src
parenta22ee0c0e140b918b6ab29110e21e409cfb5110e (diff)
downloadraylib-66c360d385a92a1f3c4a1b6f7e51193e80ee5945.tar.gz
raylib-66c360d385a92a1f3c4a1b6f7e51193e80ee5945.zip
Corrected issue on plane drawing
Diffstat (limited to 'src')
-rw-r--r--src/models.c5
1 files changed, 1 insertions, 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,15 +520,12 @@ 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);
rlEnd();