diff --git a/src/image.cpp b/src/image.cpp index a2d1bd56f..c977965ba 100644 --- a/src/image.cpp +++ b/src/image.cpp @@ -5,6 +5,7 @@ #include "bgfx_p.h" #include +#include // powf namespace bgfx { diff --git a/tools/texturec/texturec.cpp b/tools/texturec/texturec.cpp index 1f3189a04..229fe877d 100644 --- a/tools/texturec/texturec.cpp +++ b/tools/texturec/texturec.cpp @@ -31,7 +31,7 @@ namespace bgfx return mem; } - void saveTga(const char* _filePath, uint32_t _width, uint32_t _height, uint32_t _srcPitch, const void* _src, bool _grayscale, bool _yflip) + void saveTga(const char* _filePath, uint32_t _width, uint32_t _height, uint32_t _srcPitch, const void* _src, bool _grayscale = false, bool _yflip = false) { FILE* file = fopen(_filePath, "wb"); if ( NULL != file )