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

Quick ShaderEffect fragmentshader fails if '#' is first character

    XMLWordPrintable

    Details

    • Commits:
      c609a83426c0373bda2a8258dd3d9565502ec848

      Description

      code

         fragmentShader: "#extension GL_OES_standard_derivatives: enable
      

      outputs error:

      QOpenGLShader::compile(Fragment): ERROR: 0:7: '#' : invalid character 
      

      and cause invalid result. Can be tested by attached example.

      Workaround is to use empty space or linefeed in the beginning:

       fragmentShader: " #extension GL_OES_standard_derivatives: enable
      

        Attachments

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

          Activity

            People

            Assignee:
            andrew.knight Andrew Knight
            Reporter:
            qtcomsupport Qt Support
            Votes:
            5 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes