diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-26 22:12:01 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-11-26 22:17:19 +0100 |
commit | 76b76049e57319a772b863519d8bbc57460eb6f4 (patch) | |
tree | 8b31695f0eb7c97fd7eaf147f165fcce08f6ec66 /external/collada2gltf/patches | |
parent | ad19a7057efff98dd8656405d045c7df11a785b1 (diff) |
collada2gltf: Force GLSL version
Change-Id: Ia5e29cff04c3a38d992a78b956a93103ad1042a3
Diffstat (limited to 'external/collada2gltf/patches')
-rw-r--r-- | external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 | 13 |
1 files changed, 13 insertions, 0 deletions
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 <GLTFProfile> 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"; |