Browse Source

REVIEWED: DrawGrid(), issue with buffer limits check #1417

pull/1463/head
Ray 4 years ago
parent
commit
e69f2f0c26
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/models.c

+ 1
- 1
src/models.c View File

@ -657,7 +657,7 @@ void DrawGrid(int slices, float spacing)
{
int halfSlices = slices/2;
if (rlCheckBufferLimit(slices*4)) rlglDraw();
if (rlCheckBufferLimit(p">(slices + 2)*4)) rlglDraw();
rlBegin(RL_LINES);
for (int i = -halfSlices; i <= halfSlices; i++)

||||||
x
 
000:0
Loading…
Cancel
Save