mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
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:
parent
09f592a34c
commit
c2aeb9ea73
Notes:
github-actions[bot]
2026-03-11 19:21:07 +00:00
Author: https://github.com/cqundefine
Commit: c2aeb9ea73
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8285
Reviewed-by: https://github.com/gmta ✅
13 changed files with 4 additions and 16 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue