Parcourir la 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 il y a 1 an
committed by GitHub
Parent
révision
74680748b9
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: B5690EEEBB952194
1 fichiers modifiés avec 0 ajouts et 6 suppressions
  1. +0
    -6
      src/rmodels.c

+ 0
- 6
src/rmodels.c Voir le fichier

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

Chargement…
Annuler
Enregistrer