LibWeb: Move WebGL extensions requests to WebGLRenderingContextBase

Instead of making the extension objects request the OpenGL extensions
themselves, we can do it here since we already store that information
to be able to compute the list of available extensions. As bonus points
this makes it impossible to forget to request an OpenGL extension when
implementing a new WebGL one.
This commit is contained in:
Undefine 2026-03-05 20:58:44 +01:00 committed by Jelle Raaijmakers
parent 09f592a34c
commit c2aeb9ea73
Notes: github-actions[bot] 2026-03-11 19:21:07 +00:00
13 changed files with 4 additions and 16 deletions

View file

@ -29,7 +29,6 @@ OESVertexArrayObject::OESVertexArrayObject(JS::Realm& realm, GC::Ref<WebGLRender
: PlatformObject(realm)
, m_context(context)
{
m_context->context().request_extension("GL_OES_vertex_array_object");
}
GC::Ref<WebGLVertexArrayObjectOES> OESVertexArrayObject::create_vertex_array_oes()