[Libreoffice-commits] core.git: external/collada2gltf
Zolnai Tamás
tamas.zolnai at collabora.com
Fri Aug 15 06:52:19 PDT 2014
external/collada2gltf/UnpackedTarball_collada2gltf.mk | 1
external/collada2gltf/patches/fix_linux_shader_compiling.patch.1 | 13 ++++++++++
2 files changed, 14 insertions(+)
New commits:
commit 2a8da8a54811a88f38d299b334034adb9dd347e8
Author: Zolnai Tamás <tamas.zolnai at collabora.com>
Date: Fri Aug 15 15:42:19 2014 +0200
collada2gltf: fix compatibility issues of *.kmz/*.dae files under linux
It seems under linux we need to specify the version number
explicitly, because otherwise shader compiler will use GLSL 1.1
and will fail. Base line is GLSL 1.3 or OpenGL ES 3.0.
Change-Id: Ie143275ade8d6989fda055ab96943b25ef220e9d
diff --git a/external/collada2gltf/UnpackedTarball_collada2gltf.mk b/external/collada2gltf/UnpackedTarball_collada2gltf.mk
index 15a1a54..00ef562 100644
--- a/external/collada2gltf/UnpackedTarball_collada2gltf.mk
+++ b/external/collada2gltf/UnpackedTarball_collada2gltf.mk
@@ -18,6 +18,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,collada2gltf,\
external/collada2gltf/patches/collada2gltf.new-delete-mismatch.patch.1 \
external/collada2gltf/patches/collada2gltf.fix-memory-leak.patch.1 \
external/collada2gltf/patches/collada2gltf.fix-memory-leak2.patch.1 \
+ external/collada2gltf/patches/fix_linux_shader_compiling.patch.1 \
))
# vim: set noet sw=4 ts=4:
diff --git a/external/collada2gltf/patches/fix_linux_shader_compiling.patch.1 b/external/collada2gltf/patches/fix_linux_shader_compiling.patch.1
new file mode 100644
index 0000000..a4813c1
--- /dev/null
+++ b/external/collada2gltf/patches/fix_linux_shader_compiling.patch.1
@@ -0,0 +1,13 @@
+diff -ur collada2gltf.org/shaders/commonProfileShaders.cpp collada2gltf/shaders/commonProfileShaders.cpp
+--- collada2gltf.org/shaders/commonProfileShaders.cpp 2014-08-15 15:21:51.839323947 +0200
++++ collada2gltf/shaders/commonProfileShaders.cpp 2014-08-15 15:23:36.931327850 +0200
+@@ -367,7 +367,7 @@
+ public:
+
+ GLSLShader(shared_ptr <GLTFProfile> profile) {
+- this->_declarations = "precision highp float;\n";;
++ this->_declarations = "#ifdef GL_ES_VERSION_3_0\n#version 300 es\n#else\n#version 130\n#endif\nprecision highp float;\n";
+ this->_body = "void main(void) {\n";
+ this->_profile = profile;
+ }
+Only in collada2gltf/shaders: commonProfileShaders.cpp~
More information about the Libreoffice-commits
mailing list