diff options
author | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-01 21:21:05 +0000 |
commit | 606bc59d0f8f67815c6a717843835477d44db6b3 (patch) | |
tree | 687b3fe5bc844b90a3841e1ea543aa9f9934a93a /extra/glm | |
parent | 1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff) |
added ungoogled chromium
Diffstat (limited to 'extra/glm')
-rw-r--r-- | extra/glm/fix-endian-test.patch | 30 | ||||
-rw-r--r-- | extra/glm/glm.pc | 7 |
2 files changed, 37 insertions, 0 deletions
diff --git a/extra/glm/fix-endian-test.patch b/extra/glm/fix-endian-test.patch new file mode 100644 index 0000000..ba2cce4 --- /dev/null +++ b/extra/glm/fix-endian-test.patch @@ -0,0 +1,30 @@ +diff --git a/test/gtc/gtc_packing.cpp b/test/gtc/gtc_packing.cpp +index 5830999..86167c5 100644 +--- a/test/gtc/gtc_packing.cpp ++++ b/test/gtc/gtc_packing.cpp +@@ -5,6 +5,8 @@ + #include <cstdio> + #include <vector> + ++#include <endian.h> ++ + void print_bits(float const& s) + { + union +@@ -154,6 +156,7 @@ int test_U3x10_1x2() + Error += glm::all(glm::equal(v0, v1)) ? 0 : 1; + } + ++#if BYTE_ORDER == LITTLE_ENDIAN + glm::u8vec4 const v0(0xff, 0x77, 0x0, 0x33); + glm::uint32 const p0 = *reinterpret_cast<glm::uint32 const*>(&v0[0]); + glm::uint32 const r0 = 0x330077ff; +@@ -165,7 +168,7 @@ int test_U3x10_1x2() + glm::uint32 const r1 = 0xc001dcff; + + Error += p1 == r1 ? 0 : 1; +- ++#endif + return Error; + } + diff --git a/extra/glm/glm.pc b/extra/glm/glm.pc new file mode 100644 index 0000000..e3bb5ac --- /dev/null +++ b/extra/glm/glm.pc @@ -0,0 +1,7 @@ +prefix=/usr +includedir=${prefix}/include + +Name: GLM +Description: OpenGL Mathematics +Version: 0.9.9 +Cflags: -I${includedir} |