From a60cc580212e2770c3aef7decfa09b64d4a3e52f Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Fri, 29 Aug 2014 11:55:23 +0200 Subject: Upgrade libgltf to 0.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit News in this version: - Solve some limitations of walkthrough mode (fdo#81425) - Multisampling (better rendering quality, mainly at the edges) - Better error handling (no crash in case of invalid input file) Change-Id: I46fdf56b00476614487fbcc04178e43e33a01794 Reviewed-on: https://gerrit.libreoffice.org/11179 Reviewed-by: Zolnai Tamás Tested-by: Zolnai Tamás --- external/libgltf/UnpackedTarball_libgltf.mk | 2 -- .../libgltf/patches/append_shader_version.patch | 37 ---------------------- external/libgltf/patches/missing_include.patch | 11 ------- 3 files changed, 50 deletions(-) delete mode 100644 external/libgltf/patches/append_shader_version.patch delete mode 100644 external/libgltf/patches/missing_include.patch (limited to 'external/libgltf') diff --git a/external/libgltf/UnpackedTarball_libgltf.mk b/external/libgltf/UnpackedTarball_libgltf.mk index 34214a2b5a4c..176c1d15246b 100644 --- a/external/libgltf/UnpackedTarball_libgltf.mk +++ b/external/libgltf/UnpackedTarball_libgltf.mk @@ -16,8 +16,6 @@ $(eval $(call gb_UnpackedTarball_set_patchflags,libgltf,--binary)) $(eval $(call gb_UnpackedTarball_set_patchlevel,libgltf,1)) $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\ - external/libgltf/patches/missing_include.patch \ - external/libgltf/patches/append_shader_version.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libgltf/patches/append_shader_version.patch b/external/libgltf/patches/append_shader_version.patch deleted file mode 100644 index 27f0cc66ee36..000000000000 --- a/external/libgltf/patches/append_shader_version.patch +++ /dev/null @@ -1,37 +0,0 @@ -diff -ur libgltf.org/src/Shaders.cpp libgltf/src/Shaders.cpp ---- libgltf.org/src/Shaders.cpp 2014-08-18 09:19:48.323955939 +0200 -+++ libgltf/src/Shaders.cpp 2014-08-18 09:20:46.711953465 +0200 -@@ -11,6 +11,7 @@ - - #include - #include -+#include - - namespace libgltf - { -@@ -166,7 +167,24 @@ - unsigned int shaderId) - { - GLint iGLSize = iSize; -- glShaderSource(shaderId, 1, &pShader, &iGLSize); -+ if( strstr(pShader,"#version") == 0 ) -+ { -+ const GLchar* aSources[] = { -+ "#version 130\n", -+ pShader, -+ }; -+ -+ const GLint aSizes[] = { -+ strlen("#version 130\n"), -+ iGLSize, -+ }; -+ -+ glShaderSource(shaderId, 2, &aSources[0], &aSizes[0]); -+ } -+ else -+ { -+ glShaderSource(shaderId, 1, &pShader, &iGLSize); -+ } - glCompileShader(shaderId); - int iStatus = 0; - glGetShaderiv(shaderId, GL_COMPILE_STATUS, &iStatus); diff --git a/external/libgltf/patches/missing_include.patch b/external/libgltf/patches/missing_include.patch deleted file mode 100644 index 8b05224be781..000000000000 --- a/external/libgltf/patches/missing_include.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -ur libgltf.org/src/Shaders.cpp libgltf/src/Shaders.cpp ---- libgltf.org/src/Shaders.cpp 2014-08-05 11:40:30.387537876 +0200 -+++ libgltf/src/Shaders.cpp 2014-08-05 11:41:13.887536123 +0200 -@@ -10,6 +10,7 @@ - #include "Shaders.h" - - #include -+#include - - namespace libgltf - { -- cgit