mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
[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>
This commit is contained in:
@@ -1072,16 +1072,10 @@ void DrawGrid(int slices, float spacing)
|
|||||||
if (i == 0)
|
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);
|
|
||||||
rlColor3f(0.5f, 0.5f, 0.5f);
|
|
||||||
}
|
}
|
||||||
else
|
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);
|
|
||||||
rlColor3f(0.75f, 0.75f, 0.75f);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
rlVertex3f((float)i*spacing, 0.0f, (float)-halfSlices*spacing);
|
rlVertex3f((float)i*spacing, 0.0f, (float)-halfSlices*spacing);
|
||||||
|
Reference in New Issue
Block a user