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

glFramebufferTexture2DMultisampleEXT() is called with a wrong samples argument if the requested sample count is unsupported

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.9.3, 6.10.0 Beta4, 6.11.0 FF
    • 6.9.1, 6.10.0 Beta2
    • Qt RHI
    • None
    • Arch Linux on NVIDIA RTX A6000 with the driver version 575.64.05
    • Linux/Wayland
    • 3d0714df6 (dev), efea0a580 (6.10), 51edfdcad (6.9)

      This is based on a bug report we received here: https://forums.developer.nvidia.com/t/kde-app-filelight-broken-in-wayland-qt-6-9-or-newer/335357

      After investigating the issue, we realized that Qt calls the glFramebufferTexture2DMultisampleEXT() function from QGles2TextureRenderTarget::create() with a "samples" value of 32, which is higher than what we advertise for GL_MAX_SAMPLES_EXT.

      We observed that changing "rbD->sampleCount()" to "rbD->samples" in the renderBuffer branch fixes the issue mentioned above, though we didn't dig deep enough to be sure if this is the right fix.

       

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

            lagocs Laszlo Agocs
            dkorkmazturk_nv dkorkmazturk_nv
            Laszlo Agocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes