LibWeb/WebGL: Implement deleteBuffer

This commit is contained in:
Luke Wilde 2024-12-05 13:17:27 +00:00 committed by Alexander Kalenik
commit 2e1640a6c5
Notes: github-actions[bot] 2024-12-05 20:42:57 +00:00
2 changed files with 9 additions and 1 deletions

View file

@ -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];