summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-05-24 17:49:38 +0200
committerJan Holesovsky <kendy@collabora.com>2014-05-24 17:52:41 +0200
commita0ef37c55febac05f19a2cece0552e68384e56aa (patch)
tree0e7af266d4ee63e846f0d4bc6f84438bb4a1d5f8 /external
parentf2e0eafabc27228f25cbbe6f23b225420b7da470 (diff)
libgltf: Another new version.
Change-Id: I784579717674f1caf68ad489d1a931936f6f9651
Diffstat (limited to 'external')
-rw-r--r--external/libgltf/UnpackedTarball_libgltf.mk1
-rw-r--r--external/libgltf/patches/disable_fps_and_timer.patch124
2 files changed, 0 insertions, 125 deletions
diff --git a/external/libgltf/UnpackedTarball_libgltf.mk b/external/libgltf/UnpackedTarball_libgltf.mk
index e919c71dcde7..d8434b6e7abe 100644
--- a/external/libgltf/UnpackedTarball_libgltf.mk
+++ b/external/libgltf/UnpackedTarball_libgltf.mk
@@ -18,7 +18,6 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,libgltf,1))
$(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
external/libgltf/patches/include_path_glew.patch \
external/libgltf/patches/include_path_freetype.patch \
- external/libgltf/patches/disable_fps_and_timer.patch \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/libgltf/patches/disable_fps_and_timer.patch b/external/libgltf/patches/disable_fps_and_timer.patch
deleted file mode 100644
index c5d5eb289186..000000000000
--- a/external/libgltf/patches/disable_fps_and_timer.patch
+++ /dev/null
@@ -1,124 +0,0 @@
-diff --git libgltf/src/RenderScene.cpp libgltf/src/RenderScene.cpp
-index 88c5c9a..6639572 100644
---- libgltf/src/RenderScene.cpp
-+++ libgltf/src/RenderScene.cpp
-@@ -383,7 +383,9 @@ void RenderWithFBO::releaseFbo()
-
-
- CPhysicalCamera* RenderScene::sCamera = NULL;
-+#if ENABLE_FPS
- FPSCounter* RenderScene::pFPSCounter = NULL;
-+#endif
- ShaderProgram RenderScene::mShaderProgram = ShaderProgram();
-
- RenderScene::RenderScene()
-@@ -400,10 +402,12 @@ RenderScene::RenderScene()
-
- RenderScene::~RenderScene()
- {
-+#if ENABLE_FPS
- if (pFPSCounter != NULL)
- {
- delete pFPSCounter;
- }
-+#endif
- #if ENABLE_TIMER
- if(pTimer != NULL)
- {
-@@ -815,8 +819,10 @@ int RenderScene::initRender(glTFHandle* handle)
-
- void RenderScene::initFPS(unsigned char* fontBuf,unsigned int bufSize)
- {
-+#if ENABLE_FPS
- pFPSCounter = new FPSCounter(fontBuf,bufSize);
- pFPSCounter->loadFPSShader(&mShaderProgram);
-+#endif
- }
-
- void RenderScene::renderPrimitive(RenderPrimitive* pPrimitive,
-@@ -1132,10 +1138,12 @@ void RenderScene::drawTriangle(RenderPrimitive* pPrimitive)
-
- void RenderScene::prepareRender(void* lpParam)
- {
-+#if ENABLE_FPS
- if (pFPSCounter != NULL)
- {
- pFPSCounter->timeStamp();
- }
-+#endif
- viewport = *((glTFViewport*)lpParam);
- fbo.createAndBindFbo(viewport.width * SSAA, viewport.height * SSAA);
- glBindFramebuffer(GL_FRAMEBUFFER, fbo.mFboId);
-@@ -1229,10 +1237,12 @@ void RenderScene::renderShader(Technique* pTechnique)
-
- void RenderScene::completeRender()
- {
-+#if ENABLE_FPS
- if (pFPSCounter != NULL)
- {
- pFPSCounter->printFPS(&viewport);
- }
-+#endif
- glViewport(viewport.x, viewport.y, viewport.width, viewport.height);
- glBindFramebuffer(GL_FRAMEBUFFER, 0);
- fbo.renderFboTexture();
-@@ -1356,4 +1366,4 @@ double RenderScene::getAnimDuration()
- int RenderScene::isAnimPlay()
- {
- return this->mAnimationPlay ? 1 : 0;
--}
-\ No newline at end of file
-+}
-diff --git libgltf/src/RenderScene.h libgltf/src/RenderScene.h
-index cc0b3e5..065a689 100644
---- libgltf/src/RenderScene.h
-+++ libgltf/src/RenderScene.h
-@@ -8,12 +8,22 @@
- #ifndef RENDERSCENE_H
- #define RENDERSCENE_H
-
-+#ifndef ENABLE_FPS
-+#define ENABLE_FPS 0
-+#endif
-+
-+#ifndef ENABLE_TIMER
-+#define ENABLE_TIMER 0
-+#endif
-+
- #include "Shaders.h"
- #include "Common.h"
- #include "Texture.h"
- #include "Camera.h"
- #include "LoadScene.h"
-+#if ENABLE_FPS
- #include "FPSCounter.h"
-+#endif
- #include "Timer.h"
-
- using namespace glTF;
-@@ -246,7 +256,9 @@ private:
- bool loadFPSShader();
- int getFPS();
- void printFPS(glTFViewport* pViewpoit);
-+#if ENABLE_FPS
- static FPSCounter* pFPSCounter;
-+#endif
- RenderWithFBO fbo;
- #if ENABLE_TIMER
- Timer* pTimer;
-diff --git libgltf/src/Timer.h libgltf/src/Timer.h
-index e4d778b..9ab2d74 100644
---- libgltf/src/Timer.h
-+++ libgltf/src/Timer.h
-@@ -10,7 +10,10 @@
- #include "time.h"
- #include "Common.h"
-
--#define ENABLE_TIMER 1
-+#ifndef ENABLE_TIMER
-+#define ENABLE_TIMER 0
-+#endif
-+
- #define DETAILED_INFO 1
-
- #if ENABLE_TIMER