summaryrefslogtreecommitdiffstats
path: root/external/collada2gltf/patches/shader_compatibility.patch.1
diff options
context:
space:
mode:
Diffstat (limited to 'external/collada2gltf/patches/shader_compatibility.patch.1')
-rw-r--r--external/collada2gltf/patches/shader_compatibility.patch.110
1 files changed, 6 insertions, 4 deletions
diff --git a/external/collada2gltf/patches/shader_compatibility.patch.1 b/external/collada2gltf/patches/shader_compatibility.patch.1
index 85413361c055..948d8caa5f88 100644
--- a/external/collada2gltf/patches/shader_compatibility.patch.1
+++ b/external/collada2gltf/patches/shader_compatibility.patch.1
@@ -1,12 +1,14 @@
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 @@
+--- collada2gltf.org/shaders/commonProfileShaders.cpp 2014-08-17 08:57:52.187210533 +0200
++++ collada2gltf/shaders/commonProfileShaders.cpp 2014-08-17 08:59:48.427215491 +0200
+@@ -367,7 +367,9 @@
public:
GLSLShader(shared_ptr <GLTFProfile> profile) {
- this->_declarations = "precision highp float;\n";;
-+ this->_declarations = "#ifdef GL_ES_VERSION_2_0\n#version 100\n#else\n#version 130\n#endif\nprecision highp float;\n";
++ this->_declarations = "#ifdef GL_ES_VERSION_2_0\n";
++ this->_declarations += "precision highp float;\n";
++ this->_declarations += "#endif\n";
this->_body = "void main(void) {\n";
this->_profile = profile;
}