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

Can't create RGB texture with QOpenGLTexture/Qt3D on OpenGL ES 2.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.10
    • GUI: OpenGL, Qt3D
    • None
    • Windows, opengl es 2.0

    Description

      The function QOpenGLTexture::allocateStorage used by Qt3D overrides a RGB pixel format with a RGBA pixel format thus making it impossible to create a valid RGB8_UNorm texture through Qt3D api with custom QTextureImageDataGenerator and QTextureImageData.

      Tested on windows, opengl es 2.0

      The problem is in function pixelFormatCompatibleWithInternalFormat (qopengltexture.cpp: 780).
      The related commit is: http://code.qt.io/cgit/qt/qtbase.git/commit/?id=0c789184c7c7a7130346206e4abbcffc0858dfd7
      So it possibly affect all qt version > 5.3

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            davidadeko davidadeko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes