Skip to content

Commit

Permalink
[Shapes] Remove duplicate color calls in DrawGrid (#4148)
Browse files Browse the repository at this point in the history
* Update raylib_api.* by CI

* No need to call the color 4 times in a row, it's batched

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
JeffM2501 and github-actions[bot] committed Jul 9, 2024
1 parent 174313a commit 7468074
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 7468074

Please sign in to comment.