collada2gltf: Force GLSL version
Change-Id: Ia5e29cff04c3a38d992a78b956a93103ad1042a3
This commit is contained in:
parent
ad19a7057e
commit
76b76049e5
2 changed files with 14 additions and 0 deletions
|
@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,collada2gltf,\
|
|||
external/collada2gltf/patches/collada2gltf.fix-memory-leak2.patch.1 \
|
||||
external/collada2gltf/patches/shader_compatibility.patch.1 \
|
||||
external/collada2gltf/patches/drop_tr1_support.patch.1 \
|
||||
external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1 \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
13
external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1
vendored
Normal file
13
external/collada2gltf/patches/collada2gltf.add-glsl-version.patch.1
vendored
Normal file
|
@ -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";
|
Loading…
Reference in a new issue