[Libreoffice-commits] core.git: external/libgltf

Zolnai Tamás tamas.zolnai at collabora.com
Thu Jun 12 16:22:48 PDT 2014


 external/libgltf/patches/init_scene_set_handle.patch |   26 +++++++++++++------
 1 file changed, 19 insertions(+), 7 deletions(-)

New commits:
commit fd8cee8c1fb34432b786d54651f33b6c961ca7fe
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date:   Fri Jun 13 01:19:11 2014 +0200

    libgltf: fix up this patch, some forgotten changes
    
    Change-Id: I0fe3ee06d8112207f3ae3e0e8e40fa74d043ce11

diff --git a/external/libgltf/patches/init_scene_set_handle.patch b/external/libgltf/patches/init_scene_set_handle.patch
index b0dba8e..ef34fe3 100644
--- a/external/libgltf/patches/init_scene_set_handle.patch
+++ b/external/libgltf/patches/init_scene_set_handle.patch
@@ -1,6 +1,6 @@
 diff -ur libgltf.org/src/LoadScene.cpp libgltf/src/LoadScene.cpp
---- libgltf.org/src/LoadScene.cpp	2014-06-12 12:11:58.945707220 +0200
-+++ libgltf/src/LoadScene.cpp	2014-06-12 12:13:14.129704086 +0200
+--- libgltf.org/src/LoadScene.cpp	2014-06-13 01:13:40.654653289 +0200
++++ libgltf/src/LoadScene.cpp	2014-06-13 01:15:45.034648018 +0200
 @@ -148,10 +148,14 @@
      return true;
  }
@@ -19,8 +19,8 @@ diff -ur libgltf.org/src/LoadScene.cpp libgltf/src/LoadScene.cpp
      {
          TRACE_TIME ("parseScene->readBuffers", CPU);
 diff -ur libgltf.org/src/LoadScene.h libgltf/src/LoadScene.h
---- libgltf.org/src/LoadScene.h	2014-06-12 12:11:58.945707220 +0200
-+++ libgltf/src/LoadScene.h	2014-06-12 12:12:11.805706684 +0200
+--- libgltf.org/src/LoadScene.h	2014-06-13 01:13:40.654653289 +0200
++++ libgltf/src/LoadScene.h	2014-06-13 01:16:03.886647220 +0200
 @@ -27,7 +27,8 @@
  public:
      glTFHandle* getFileNameInJson(const std::string& jsonFile);
@@ -39,8 +39,8 @@ diff -ur libgltf.org/src/LoadScene.h libgltf/src/LoadScene.h
 \ No newline at end of file
 +#endif
 diff -ur libgltf.org/src/RenderScene.cpp libgltf/src/RenderScene.cpp
---- libgltf.org/src/RenderScene.cpp	2014-06-12 12:11:58.949707220 +0200
-+++ libgltf/src/RenderScene.cpp	2014-06-12 12:12:13.509706613 +0200
+--- libgltf.org/src/RenderScene.cpp	2014-06-13 01:13:40.654653289 +0200
++++ libgltf/src/RenderScene.cpp	2014-06-13 01:15:11.222649451 +0200
 @@ -561,7 +561,7 @@
      {
          return LIBGLTF_PARSE_JSON_ERROR;
@@ -77,7 +77,19 @@ diff -ur libgltf.org/src/RenderScene.cpp libgltf/src/RenderScene.cpp
  }
  
  unsigned int RenderScene::bindAttribute(const Attribute* pAttr)
-@@ -1543,4 +1546,4 @@
+@@ -844,11 +847,6 @@
+ 
+ int RenderScene::initRender(glTFHandle* handle)
+ {
+-    pScene = new Scene();
+-    if(0 == pScene)
+-    {
+-        return LIBGLTF_MEMORY_ERROR;
+-    }
+     int iResult = loadScene(*pScene, handle);
+     if( iResult != LIBGLTF_SUCESS)
+     {
+@@ -1543,4 +1541,4 @@
  int  RenderScene::isAnimPlay()
  {
      return this->mAnimationPlay ? 1 : 0;


More information about the Libreoffice-commits mailing list