diff options
Diffstat (limited to 'external/libgltf/patches')
-rw-r--r-- | external/libgltf/patches/disable_fps.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/external/libgltf/patches/disable_fps.patch b/external/libgltf/patches/disable_fps.patch new file mode 100644 index 000000000000..bc64d90cd462 --- /dev/null +++ b/external/libgltf/patches/disable_fps.patch @@ -0,0 +1,31 @@ +diff --git libgltf/src/FPSCounter.h libgltf/src/FPSCounter.h +index c6c4279..66f7e2b 100644 +--- libgltf/src/FPSCounter.h ++++ libgltf/src/FPSCounter.h +@@ -7,6 +7,11 @@ + */
+ #ifndef FPSCOUNTER_H
+ #define FPSCOUNTER_H
++
++#define ENABLE_FPS 0
++
++#if ENABLE_FPS
++
+ #include "time.h"
+ #include "Font.h"
+ #include "Shaders.h"
+@@ -17,7 +22,6 @@ +
+ #define WRITEFPS2FILE 1
+ #define TIMETHRESHOLD 30
+-#define ENABLE_FPS 1
+ #define FPS_FILE "./FPSCounter.txt"
+ #if WRITEFPS2FILE
+ #include <iostream>
+@@ -136,4 +140,6 @@ private: + #endif
+ };
+
++#endif // ENABLE_FPS
++
+ #endif
|