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

Quick ShaderEffect fragmentshader fails if '#' is first character

    XMLWordPrintable

Details

    • 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

        For Gerrit Dashboard: QTBUG-42882
        # Subject Branch Project Status CR V

        Activity

          People

            andrew.knight Andrew Knight
            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