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

qtwayland - error: ‘GL_RGBA8’ was not declared in this scope

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.0 Beta4
    • 5.14.2
    • QPA: Wayland
    • None
    • Linux/Wayland
    •   1d18591

    Description

      Compiling the qtwayland examples I get the following compile failure for examples/wayland/texture-sharing/custom-compositor:

            main.cpp:83:33: error: ‘GL_RGBA8’ was not declared in this scope; did you mean ‘GL_RGBA4’?
               83 |             *glInternalFormat = GL_RGBA8;
                  |                                 ^~~~~~~~
                  |                                 GL_RGBA4
            main.cpp:120:33: error: ‘GL_RGBA8’ was not declared in this scope; did you mean ‘GL_RGBA4’?
              120 |             *glInternalFormat = GL_RGBA8;
                  |                                 ^~~~~~~~
                  |                                 GL_RGBA4
      

      The same is fixes in various other places by:

      #ifndef GL_RGBA8
      #define GL_RGBA8 0x8058
      #endif
      

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            p_seiderer Peter Seiderer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes