LibWeb/WebGL: Preserve original bound objects to return in getParameter

Required by https://qwasm2.m-h.org.uk, which adds a custom `name`
attribute to objects it generates. It then gets some of these objects
out with getParameter, and expects the `name` attribute to be there.
This commit is contained in:
Luke Wilde 2024-12-24 18:16:29 +00:00 committed by Alexander Kalenik
commit 8e453d5069
Notes: github-actions[bot] 2025-01-08 14:59:41 +00:00
4 changed files with 170 additions and 4 deletions

View file

@ -13,6 +13,7 @@ namespace Web::WebGL {
class WebGLRenderingContextBase {
public:
virtual GC::Cell const* gc_cell() const = 0;
virtual void visit_edges(JS::Cell::Visitor&) = 0;
};
}