Fix linux build

This commit is contained in:
baldurk
2019-09-18 19:33:37 +01:00
parent 57c60cdfb8
commit 78fba8ec57
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -149,6 +149,7 @@ set(sources
maths/camera.cpp
maths/camera.h
maths/formatpacking.h
maths/formatpacking.cpp
maths/half_convert.h
maths/matrix.cpp
maths/matrix.h
+2
View File
@@ -23,6 +23,8 @@
******************************************************************************/
#include "formatpacking.h"
#include <float.h>
#include <math.h>
#include "common/common.h"
Vec3f ConvertFromR11G11B10(uint32_t data)
+2
View File
@@ -135,5 +135,7 @@ inline float ConvertLinearToSRGB(float linear)
return 1.055f * powf(linear, 1.0f / 2.4f) - 0.055f;
}
typedef uint8_t byte;
struct ResourceFormat;
float ConvertComponent(const ResourceFormat &fmt, const byte *data);