LibWeb: Make WebGL extensions creation agnostic of WebGL version

This commit is contained in:
Undefine
2026-03-05 19:37:33 +01:00
committed by Jelle Raaijmakers
parent 502f2618aa
commit 5a029b4533
Notes: github-actions[bot] 2026-03-11 19:21:54 +00:00
25 changed files with 58 additions and 57 deletions

View File

@@ -17,7 +17,7 @@ class OESVertexArrayObject : public Bindings::PlatformObject {
GC_DECLARE_ALLOCATOR(OESVertexArrayObject);
public:
static JS::ThrowCompletionOr<GC::Ptr<OESVertexArrayObject>> create(JS::Realm&, GC::Ref<WebGLRenderingContext>);
static JS::ThrowCompletionOr<GC::Ptr<OESVertexArrayObject>> create(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
GC::Ref<WebGLVertexArrayObjectOES> create_vertex_array_oes();
void delete_vertex_array_oes(GC::Root<WebGLVertexArrayObjectOES> array_object);
@@ -29,9 +29,9 @@ protected:
void visit_edges(Visitor&) override;
private:
OESVertexArrayObject(JS::Realm&, GC::Ref<WebGLRenderingContext>);
OESVertexArrayObject(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
GC::Ref<WebGLRenderingContext> m_context;
GC::Ref<WebGLRenderingContextBase> m_context;
};
}