mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +00:00
LibWeb/WebGL: Request GL_ANGLE_instanced_arrays extension when required
This commit is contained in:
parent
1156fe483d
commit
58942e1137
Notes:
github-actions[bot]
2025-01-21 20:38:07 +00:00
Author: https://github.com/Lubrsi
Commit: 58942e1137
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3239
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr
4 changed files with 32 additions and 5 deletions
|
@ -313,4 +313,14 @@ Vector<String> OpenGLContext::get_supported_extensions()
|
|||
#endif
|
||||
}
|
||||
|
||||
void OpenGLContext::request_extension(char const* extension_name)
|
||||
{
|
||||
#ifdef AK_OS_MACOS
|
||||
make_current();
|
||||
glRequestExtensionANGLE(extension_name);
|
||||
#else
|
||||
(void)extension_name;
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue