diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2017-11-17 03:39:45 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2017-11-17 03:39:45 +0000 |
| commit | ea32c43c8a2e8d18290e7cdd5dc1a5c5e0bbeba9 (patch) | |
| tree | 21f4d8345782eb6ebd30977c4ad035ca01ac12a6 /TextureLoader/src/TextureLoader.cpp | |
| parent | Updated to version 2.1 (diff) | |
| download | DiligentTools-ea32c43c8a2e8d18290e7cdd5dc1a5c5e0bbeba9.tar.gz DiligentTools-ea32c43c8a2e8d18290e7cdd5dc1a5c5e0bbeba9.zip | |
Fixed android build
Diffstat (limited to 'TextureLoader/src/TextureLoader.cpp')
| -rw-r--r-- | TextureLoader/src/TextureLoader.cpp | 3 |
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 ) |
