Skip to content

Commit

Permalink
Don't use initializer lists with std::min/std::max as MSVC generates …
Browse files Browse the repository at this point in the history
…poor code
  • Loading branch information
TheGondos committed Jun 29, 2023
1 parent 54e3cfa commit 5aece0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orbitersdk/include/DrawAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,12 @@ namespace oapi {
#endif
float MaxRGB() const
{
return std::max({ r, g, b });
return std::max( r, std::max(g, b));
}

float MinRGB() const
{
return std::min({ r, g, b });
return std::min( r, std::min(g, b));
}

float sql() const
Expand Down Expand Up @@ -391,7 +391,7 @@ namespace oapi {

float MaxRGB() const
{
return std::max({ r, g, b });
return std::max( r, std::max(g, b));
}

FVECTOR4()
Expand Down

0 comments on commit 5aece0e

Please sign in to comment.