Skip to content

Commit

Permalink
No need to call the color 4 times in a row, it's batched
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffM2501 committed Jul 9, 2024
1 parent 95d0826 commit 732b8cf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -1072,16 +1072,10 @@ void DrawGrid(int slices, float spacing)
if (i == 0)
{
rlColor3f(0.5f, 0.5f, 0.5f);
rlColor3f(0.5f, 0.5f, 0.5f);
rlColor3f(0.5f, 0.5f, 0.5f);
rlColor3f(0.5f, 0.5f, 0.5f);
}
else
{
rlColor3f(0.75f, 0.75f, 0.75f);
rlColor3f(0.75f, 0.75f, 0.75f);
rlColor3f(0.75f, 0.75f, 0.75f);
rlColor3f(0.75f, 0.75f, 0.75f);
}

rlVertex3f((float)i*spacing, 0.0f, (float)-halfSlices*spacing);
Expand Down

0 comments on commit 732b8cf

Please sign in to comment.