Browse Source

Switch to using SDL_powf() instead of pow()

Sam Lantinga 1 year ago
parent
commit
006edcab60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/SDL_blit_slow.c

+ 1 - 1
src/video/SDL_blit_slow.c

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