diff options
| author | Jeffery Myers <[email protected]> | 2024-07-09 10:45:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-07-09 19:45:07 +0200 |
| commit | 74680748b9abe05ceda5d412b61ff99addf72807 (patch) | |
| tree | 4e85ed54bdef96e70bd585d23ea99d52a228e967 | |
| parent | 174313acbfa74d2a45fc0207f47ab00fbdb06050 (diff) | |
| download | raylib-74680748b9abe05ceda5d412b61ff99addf72807.tar.gz raylib-74680748b9abe05ceda5d412b61ff99addf72807.zip | |
[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>
| -rw-r--r-- | src/rmodels.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/rmodels.c b/src/rmodels.c index 50328fca..c1d56765 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -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); |
