Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.7
-
None
-
Android 4.4.4
Description
When run Android apps built with latest qt3d 5.7 got following typical error:
E/Adreno-SC( 7294): <CPPErrorToInfoLog:846>: GLSL line 1: Error: #version is followed by spurious tokens W/libmaterials-cpp.so( 7294): (null):0 ((null)): QOpenGLShader::compile(Vertex): OpenGL ES #version <number> is not supported. W/libmaterials-cpp.so( 7294): ERROR: 0:1: '' : GLSL compile error: #version is followed by spurious tokens W/libmaterials-cpp.so( 7294): ERROR: 0:3: 'in' : Syntax error: syntax error W/libmaterials-cpp.so( 7294): ERROR: 2 compilation errors. No code generated. W/libmaterials-cpp.so( 7294): W/libmaterials-cpp.so( 7294): W/libmaterials-cpp.so( 7294): (null):0 ((null)): *** Problematic Vertex shader source code *** W/libmaterials-cpp.so( 7294): (null):0 ((null)): #version 150 core ...
For shaders of default materials phong, diffusemap and so on.
That is, for some reason it try to run not supported on Android Open GL 3.1 shaders instead of Open GL ES 2.0 ones.