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

QOffScreenSurface::isValid always returns false on WebAssembly

    XMLWordPrintable

Details

    • WebAssembly
    • 139d57a7e (dev), 417cf07c5 (6.7), f7426395a (6.6)

    Description

      If you call QOffScreenSurface::isValid on a WebAssembly build it always returns false. This is because it is implemented via QWasmOffscreenSurface which provides no ::isValid implementation, so the default super implementation in QPlaformOffscreenSurface is called instead, and this unconditionally returns false.

      I guess a sensible implementation might be to test m_offscreenCanvas against emscripten::val::undefined(), but that's speculative on my part.

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            timangus Tim Angus
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes