Browse Source

Check buffer limit on DrawBillboardRec()

pull/914/head
Ray 5 years ago
parent
commit
4b2f6b2b5f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/models.c

+ 2
- 0
src/models.c View File

@ -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);

Loading…
Cancel
Save