Kaydet (Commit) 028c9662 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

collada2gltf: compatibility fix: OpenGL ES 2.0 is enough

That's why it was worked in some case, when OpenGL ES is
available then it is the default and not the GLSL 1.1.

Change-Id: I60d545e76115396433df8dc300bc13935099c776
üst c7307c77
......@@ -6,7 +6,7 @@ diff -ur collada2gltf.org/shaders/commonProfileShaders.cpp collada2gltf/shaders/
GLSLShader(shared_ptr <GLTFProfile> profile) {
- this->_declarations = "precision highp float;\n";;
+ this->_declarations = "#ifdef GL_ES_VERSION_3_0\n#version 300 es\n#else\n#version 130\n#endif\nprecision highp float;\n";
+ this->_declarations = "#ifdef GL_ES_VERSION_2_0\n#version 100 es\n#else\n#version 130\n#endif\nprecision highp float;\n";
this->_body = "void main(void) {\n";
this->_profile = profile;
}
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