[wpt-sync] Sync PR 63249 - webgl: Map BACK on the default framebuffer and drop stale errors on swap
Categories
(Core :: Graphics: CanvasWebGL, task, P4)
Tracking
()
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63249 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63249
Details from upstream follow.
mxmgorin <102797145+mxmgorin@users.noreply.github.com> wrote:
webgl: Map BACK on the default framebuffer and drop stale errors on swap
This makes
drawBuffers([BACK])andreadBuffer(BACK)on the default framebuffer useCOLOR_ATTACHMENT0, and makes buffer swaps discard a pending GL error instead of panicking. Previously GL rejectedBACKfor the FBO used by the canvas, so these calls had no effect. In release builds the error also stayed pending until the swap, where surfman failed to create the next surface on macOS.Testing:
conformance2/renderbuffers/readbuffer.htmlpasses one more subtest. Added webgl/drawBuffers-back-default-framebuffer.html, which fails without this change. Also checked on macOS: puzzle.renefloor.nl and wonderforge.pages.dev no longer crash.
Fixes: #<!-- nolink -->48550
Reviewed in servo/servo#48620
| Assignee | ||
Updated•1 month ago
|
Updated•1 month ago
|
Description
•