Fixed Linux build.

This commit is contained in:
bkaradzic 2013-08-22 09:56:41 -07:00
parent 333ff8500d
commit 20f24bbe2b
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include "bgfx_p.h"
#include <bx/float4_t.h>
#include <math.h> // powf
namespace bgfx
{

View File

@ -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 )