Explorar el Código

Check buffer limit on DrawBillboardRec()

Ray hace 6 años
padre
commit
4b2f6b2b5f
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/models.c

+ 2 - 0
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);