Browse Source

[Shapes] Remove duplicate color calls in DrawGrid (#4148)

* 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>
pull/4278/head
Jeffery Myers 5 months ago
committed by GitHub
parent
commit
74680748b9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      src/rmodels.c

+ 0
- 6
src/rmodels.c View File

@ -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);

Loading…
Cancel
Save