LibWeb/WebGL: Implement getSupportedExtensions()

This commit is contained in:
Aliaksandr Kalenik 2024-12-10 05:49:33 +01:00 committed by Alexander Kalenik
parent af4f0c5a81
commit 145bb0f849
Notes: github-actions[bot] 2024-12-13 08:20:40 +00:00
6 changed files with 90 additions and 6 deletions

View file

@ -161,9 +161,9 @@ void WebGLRenderingContext::allocate_painting_surface_if_needed()
context().allocate_painting_surface_if_needed();
}
Optional<Vector<String>> WebGLRenderingContext::get_supported_extensions() const
Optional<Vector<String>> WebGLRenderingContext::get_supported_extensions()
{
return {};
return context().get_supported_extensions();
}
JS::Object* WebGLRenderingContext::get_extension(String const&)