Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6, dev
-
None
-
-
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
For Gerrit Dashboard: QTBUG-120350 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
527328,3 | wasm: provide isValid implementation for QWasmOffscreenSurface | dev | qt/qtbase | Status: MERGED | +2 | 0 |
529039,2 | wasm: provide isValid implementation for QWasmOffscreenSurface | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
530952,2 | wasm: provide isValid implementation for QWasmOffscreenSurface | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |