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

QtShaderProgram prescision issues

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 4.7.1
    • 4.7.0
    • GUI: OpenGL
    • None
    • 6155050f68cc86c445552da61a5f240c16f5e2cd

    Description

      With the release of GL_ARB_ES2_compatibility, a GL desktop context supports ignoring the precision qualifiers in a GLSL shader. thus adding the defines:

      "#define lowp\n"
      "#define mediump\n"
      "#define highp\n";

      is not a good idea. Cards supporting GL_ARB_ES2_compatibility include GeForce 6 all the way to GeForce 4xx (with recent drivers). Additionally we should be seeing ATI drivers with this extension very, very soon [it is core in GL4.1 but does not require GL4 hardware] in corresponding generation of cards. [for the record GeForce 6 was first released April 2004, over 6 years ago].

      Additionally adding those defines does not in any way handle "default precision qualifiers in GLSL for GLES2", see section 4.5.3 of "The Open GL ES shading Language", http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf

      Attachments

        Issue Links

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

          Activity

            People

              kjernase Trond Kjernåsen (Inactive)
              kevin.rogovin Kevin Rogovin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes