summaryrefslogtreecommitdiffhomepage
path: root/src/models.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-13 01:08:39 +0200
committerRay <[email protected]>2021-04-13 01:08:39 +0200
commitd289085ce3e4b7bc444a9826dc1b43d747a4f56b (patch)
tree8ce5a41eeb6b47a03d25c5e3c239690dd21443d0 /src/models.c
parent06f16f199a7bb9248089401fc34f93fe7a288f75 (diff)
downloadraylib-d289085ce3e4b7bc444a9826dc1b43d747a4f56b.tar.gz
raylib-d289085ce3e4b7bc444a9826dc1b43d747a4f56b.zip
Reviewed DrawLine3D() limits #1721
Diffstat (limited to 'src/models.c')
-rw-r--r--src/models.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/models.c b/src/models.c
index 6860cc45..4e327394 100644
--- a/src/models.c
+++ b/src/models.c
@@ -134,7 +134,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
// WARNING: Be careful with internal buffer vertex alignment
// when using RL_LINES or RL_TRIANGLES, data is aligned to fit
// lines-triangles-quads in the same indexed buffers!!!
- rlCheckRenderBatchLimit(4);
+ rlCheckRenderBatchLimit(8);
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
@@ -146,7 +146,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
// Draw a point in 3D space, actually a small line
void DrawPoint3D(Vector3 position, Color color)
{
- rlCheckRenderBatchLimit(4);
+ rlCheckRenderBatchLimit(8);
rlPushMatrix();
rlTranslatef(position.x, position.y, position.z);