Browse Source

Fix flicker again

tags/v0.3.2
Andrew Belt 7 years ago
parent
commit
5bf6b573f2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      include/math.hpp

+ 1
- 1
include/math.hpp View File

@@ -63,7 +63,7 @@ inline float eucmodf(float a, float base) {
If min < max, returns max
*/
inline float clampf(float x, float min, float max) {
return x > max ? max : x < min ? min : x;
return fmaxf(fminf(x, max), min);
}

/** If the magnitude of x if less than eps, return 0 */


Loading…
Cancel
Save