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

QOpenGLFunctions::glTexImage2D GL_RGBA bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 5.15.0
    • GUI: OpenGL
    • None
    • Windows10
    • Windows

    Description

      for (unsigned int i = 0; i < pixel_size; i++)

      { (texture_data)[i * 4 + 0] = 0xff; //R (texture_data)[i * 4 + 1] = 0x00; //G (texture_data)[i * 4 + 2] = 0x00; //B (texture_data)[i * 4 + 3] = 0x00; //A  // BUG }

      ctx->functions()->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, temp_width, temp_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data); 

       

      If the alpha channel value is 0, the image is not completely transparent.

      Attachments

        1. 1.png
          1.png
          73 kB
        2. 2.png
          2.png
          50 kB
        3. 3.jpg
          3.jpg
          14 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            amos yang xiangyu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes