Kaydet (Commit) 76b76049 authored tarafından Matúš Kukan's avatar Matúš Kukan

collada2gltf: Force GLSL version

Change-Id: Ia5e29cff04c3a38d992a78b956a93103ad1042a3
üst ad19a705
......@@ -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:
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";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment