Reviewed DrawLine3D() limits #1721
This commit is contained in:
parent
06f16f199a
commit
d289085ce3
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
|
||||||
// WARNING: Be careful with internal buffer vertex alignment
|
// WARNING: Be careful with internal buffer vertex alignment
|
||||||
// when using RL_LINES or RL_TRIANGLES, data is aligned to fit
|
// when using RL_LINES or RL_TRIANGLES, data is aligned to fit
|
||||||
// lines-triangles-quads in the same indexed buffers!!!
|
// lines-triangles-quads in the same indexed buffers!!!
|
||||||
rlCheckRenderBatchLimit(4);
|
rlCheckRenderBatchLimit(8);
|
||||||
|
|
||||||
rlBegin(RL_LINES);
|
rlBegin(RL_LINES);
|
||||||
rlColor4ub(color.r, color.g, color.b, color.a);
|
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
|
// Draw a point in 3D space, actually a small line
|
||||||
void DrawPoint3D(Vector3 position, Color color)
|
void DrawPoint3D(Vector3 position, Color color)
|
||||||
{
|
{
|
||||||
rlCheckRenderBatchLimit(4);
|
rlCheckRenderBatchLimit(8);
|
||||||
|
|
||||||
rlPushMatrix();
|
rlPushMatrix();
|
||||||
rlTranslatef(position.x, position.y, position.z);
|
rlTranslatef(position.x, position.y, position.z);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue