From 76b76049e57319a772b863519d8bbc57460eb6f4 Mon Sep 17 00:00:00 2001 From: Matúš Kukan Date: Wed, 26 Nov 2014 22:12:01 +0100 Subject: collada2gltf: Force GLSL version Change-Id: Ia5e29cff04c3a38d992a78b956a93103ad1042a3 --- .../patches/collada2gltf.add-glsl-version.patch.1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 (limited to 'external/collada2gltf/patches') diff --git a/external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 b/external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 new file mode 100644 index 000000000000..5da297836064 --- /dev/null +++ b/external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 @@ -0,0 +1,13 @@ +diff -ur collada2gltf.org/shaders/commonProfileShaders.cpp collada2gltf/shaders/commonProfileShaders.cpp +--- collada2gltf.org/shaders/commonProfileShaders.cpp 2014-11-26 22:05:07.445842977 +0100 ++++ collada2gltf/shaders/commonProfileShaders.cpp 2014-11-26 22:07:24.313844588 +0100 +@@ -367,7 +367,8 @@ + public: + + GLSLShader(shared_ptr profile) { +- this->_declarations = "#ifdef GL_ES_VERSION_2_0\n"; ++ this->_declarations = "#version 130\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"; -- cgit