mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 14:23:12 +00:00
REVIEWED: DrawGrid(), issue with buffer limits check #1417
This commit is contained in:
parent
d360a49f36
commit
e69f2f0c26
@ -657,7 +657,7 @@ void DrawGrid(int slices, float spacing)
|
|||||||
{
|
{
|
||||||
int halfSlices = slices/2;
|
int halfSlices = slices/2;
|
||||||
|
|
||||||
if (rlCheckBufferLimit(slices*4)) rlglDraw();
|
if (rlCheckBufferLimit((slices + 2)*4)) rlglDraw();
|
||||||
|
|
||||||
rlBegin(RL_LINES);
|
rlBegin(RL_LINES);
|
||||||
for (int i = -halfSlices; i <= halfSlices; i++)
|
for (int i = -halfSlices; i <= halfSlices; i++)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user