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

QOpenGLTexture(QOpenGLTexture::TargetRectangle) generates unnecessary warnings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.2
    • GUI: OpenGL
    • None
    • All

    Description

      QOpenGLTexture::TargetRectangle does not support Mipmaps, but calling QOpenGLTexture::setData() always implies an internal call to setMipLevels(), which generates a the warning "QAbstractOpenGLTexture::setMipLevels(): This texture target does not support mipmaps"

      While most of the calls to setData take mipLevel as the first parameter, there are others such as void QOpenGLTexture::setData(const QImage &image, MipMapGeneration genMipMaps = GenerateMipMaps) that don't, and I can't think of a reason why the warning should be raised in that case. Even less when the second parameter is set to QOpenGLTexture::DontGenerateMipMaps.

       

      This is polluting my debug window and making it unusable when calling it for each frame of a video application. 

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            xvallspl Xavier Valls Pla
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes