Does Udoo Neo support openGL 2.1 or just openGL ES 2.0 ?

Discussion in 'UDOO NEO' started by NatWalker, May 9, 2017.

  1. NatWalker

    NatWalker New Member

    Joined:
    May 5, 2017
    Messages:
    1
    Likes Received:
    0
    Hi,
    can someone clarify whether Udoo Neo supports OpenGL 2.1 and GLSL 1.2? I'm having problems with getting a basic 1.2 shader to work. Here is the vertex shader:


    #version 120

    void main(void)
    {
    gl_Position = gl_ModelViewMatrix * gl_Vertex;
    }

    and get I the error:

    log(1:0) : error : Expect 100 afer the #version.
    (1:0) : error : Error in parsing.
    error : syntax error


    Note, typo of "afer" rather than "after" in the error info.

    However glxinfo reports that the GC400 supports OpenGL 2.1 and GLSL 1.2:

    OpenGL vendor string: Vivante Corporation
    OpenGL renderer string: Vivante GC400
    OpenGL version string: 2.1 2.0.1
    OpenGL shading language version string: 1.20


    Not sure if this is significant but I'm using freeglut3 and glew.

    Thanks,
    Nathan
     
  2. jas-mx

    jas-mx Active Member

    Joined:
    Dec 31, 2013
    Messages:
    407
    Likes Received:
    118
    It only support OpenGL ES 2.0 there's no OpenGL support. You may be seeing Open GL 2.1 support because the udooubuntu release may contain an unsupported (outdated) Vivante OpenGL binary (which translates calls to ES 2.0). All OpenGL calls should be going through mesa for software rendering.

    For freeglut3 you need to force it use to use Open GL ES 2.0, however I'm not sure how well that will perform on X11 because in many places in the software stack it will still use software rendering.
     
    NatWalker likes this.

Share This Page