Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-54782

Open GL 3.1 shaders execute instead of Open GL ES 2.0 on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 5.7
    • Qt3D
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            seanharmer Sean Harmer
            lukegluke Oleg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes