mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Switch to using SDL_powf() instead of pow()
This commit is contained in:
parent
95a67278d1
commit
006edcab60
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ static float PQtoNits(float pq)
|
|||
const float oo_m2 = 1.0f / 78.84375f;
|
||||
|
||||
float num = SDL_max(SDL_powf(pq, oo_m2) - c1, 0.0f);
|
||||
float den = c2 - c3 * pow(pq, oo_m2);
|
||||
float den = c2 - c3 * SDL_powf(pq, oo_m2);
|
||||
|
||||
return 10000.0f * SDL_powf(num / den, oo_m1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue