mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Moved most love.math functions out of the Math class, since they're pure functions.
--HG-- branch : minor
This commit is contained in:
@@ -490,7 +490,7 @@ void Graphics::clear(const std::vector<OptionalColorf> &colors)
|
||||
if (isGammaCorrect())
|
||||
{
|
||||
for (int i = 0; i < 3; i++)
|
||||
c[i] = math::Math::instance.gammaToLinear(c[i]);
|
||||
c[i] = math::gammaToLinear(c[i]);
|
||||
}
|
||||
|
||||
if (GLAD_ES_VERSION_3_0 || GLAD_VERSION_3_0)
|
||||
|
||||
Reference in New Issue
Block a user