mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 11:37:16 +02:00
LibWeb/WebGL: Implement deleteBuffer
This commit is contained in:
committed by
Alexander Kalenik
parent
4c0872ea1b
commit
2e1640a6c5
Notes:
github-actions[bot]
2024-12-05 20:42:57 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/2e1640a6c50 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791 Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/shannonbooth
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user