summaryrefslogtreecommitdiffstats
path: root/TextureLoader/src/TextureLoader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TextureLoader/src/TextureLoader.cpp')
-rw-r--r--TextureLoader/src/TextureLoader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/TextureLoader/src/TextureLoader.cpp b/TextureLoader/src/TextureLoader.cpp
index cf7a32d..51da064 100644
--- a/TextureLoader/src/TextureLoader.cpp
+++ b/TextureLoader/src/TextureLoader.cpp
@@ -26,6 +26,7 @@
#include "GraphicsUtilities.h"
#include <algorithm>
#include <limits>
+#include <math.h>
#include "DDSLoader.h"
using namespace Diligent;
@@ -40,7 +41,7 @@ namespace Diligent
if( SRGB < 0.04045f )
return SRGB / 12.92f;
else
- return powf( (SRGB + a) / (1 + a), 2.4f );
+ return pow( (SRGB + a) / (1 + a), 2.4f );
}
float LinearToSRGB( float c )