From 4b2f6b2b5f5b3432e41c5e30e985bc716870f892 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 22 Jul 2019 00:12:51 +0200 Subject: [PATCH] Check buffer limit on DrawBillboardRec() --- src/models.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/models.c b/src/models.c index 49263889..1d5a0a38 100644 --- a/src/models.c +++ b/src/models.c @@ -2431,6 +2431,8 @@ void DrawBillboardRec(Camera camera, Texture2D texture, Rectangle sourceRec, Vec Vector3 c = Vector3Add(center, p2); Vector3 d = Vector3Subtract(center, p1); + if (rlCheckBufferLimit(4)) rlglDraw(); + rlEnableTexture(texture.id); rlBegin(RL_QUADS);