mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/WebGL: Implement deleteBuffer
This commit is contained in:
parent
4c0872ea1b
commit
2e1640a6c5
Notes:
github-actions[bot]
2024-12-05 20:42:57 +00:00
Author: https://github.com/Lubrsi
Commit: 2e1640a6c5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/shannonbooth
2 changed files with 9 additions and 1 deletions
|
@ -699,6 +699,14 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "deleteBuffer"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto handle = buffer ? buffer->handle() : 0;
|
||||
glDeleteBuffers(1, &handle);
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
Vector<ByteString> gl_call_arguments;
|
||||
for (size_t i = 0; i < function.parameters.size(); ++i) {
|
||||
auto const& parameter = function.parameters[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue