فهرست منبع

Fixed Linux build.

bkaradzic 12 سال پیش
والد
کامیت
20f24bbe2b
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      src/image.cpp
  2. 1 1
      tools/texturec/texturec.cpp

+ 1 - 0
src/image.cpp

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

+ 1 - 1
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 )