diff options
| -rw-r--r-- | RenderScript/include/ConvenienceFunctions.h | 2 | ||||
| -rw-r--r-- | RenderScript/include/ParsingErrors.h | 2 | ||||
| -rw-r--r-- | TextureLoader/src/TextureLoader.cpp | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/RenderScript/include/ConvenienceFunctions.h b/RenderScript/include/ConvenienceFunctions.h index 01bcdf4..6134576 100644 --- a/RenderScript/include/ConvenienceFunctions.h +++ b/RenderScript/include/ConvenienceFunctions.h @@ -23,6 +23,8 @@ #pragma once +#include <string> + #include "Errors.h" #include "FileWrapper.h" #include "ScriptParser.h" diff --git a/RenderScript/include/ParsingErrors.h b/RenderScript/include/ParsingErrors.h index d0944a2..662c86f 100644 --- a/RenderScript/include/ParsingErrors.h +++ b/RenderScript/include/ParsingErrors.h @@ -23,6 +23,8 @@ #pragma once +#include <vector> + template<typename SSType> SSType& operator << (SSType &ss, const std::vector<Diligent::String>& Arg ) { 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 ) |
