summaryrefslogtreecommitdiff
path: root/external/libgltf/patches/fmod_error_handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/libgltf/patches/fmod_error_handling.patch')
-rw-r--r--external/libgltf/patches/fmod_error_handling.patch22
1 files changed, 0 insertions, 22 deletions
diff --git a/external/libgltf/patches/fmod_error_handling.patch b/external/libgltf/patches/fmod_error_handling.patch
deleted file mode 100644
index 3a1329187f69..000000000000
--- a/external/libgltf/patches/fmod_error_handling.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ur libgltf.org/src/RenderScene.cpp libgltf/src/RenderScene.cpp
---- libgltf.org/src/RenderScene.cpp 2014-05-06 18:26:20.097144491 +0200
-+++ libgltf/src/RenderScene.cpp 2014-05-06 18:26:26.281144733 +0200
-@@ -11,6 +11,7 @@
- #include <glm/gtc/type_ptr.hpp>
- #include <glm/gtc/quaternion.hpp>
- #include <glm/gtx/quaternion.hpp>
-+#include <cerrno>
-
- RenderPrimitive::RenderPrimitive()
- : mVerterCount(0), mIndicesCount(0)
-@@ -979,7 +980,9 @@
-
- double RenderScene::getAnimTime()
- {
-- return fmod(this->mCurrentTime, this->mDuration);
-+ errno = 0;
-+ double time = fmod(this->mCurrentTime, this->mDuration);
-+ return errno == EDOM ? 0.0 : time;
- }
-
- void RenderScene::setAnimLoop(int loop)