diff options
author | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-04 23:52:30 +0100 |
commit | 739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch) | |
tree | 09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /extra/glm/fix-endian-test.patch | |
parent | 4c585ad54388285500fd18a6aaa516894e0f2c16 (diff) |
moved everything to new file formatting
Diffstat (limited to 'extra/glm/fix-endian-test.patch')
-rw-r--r-- | extra/glm/fix-endian-test.patch | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/extra/glm/fix-endian-test.patch b/extra/glm/fix-endian-test.patch deleted file mode 100644 index ba2cce4..0000000 --- a/extra/glm/fix-endian-test.patch +++ /dev/null @@ -1,30 +0,0 @@ -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; - } - |