mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb/WebGL: Implement deleteTexture
This commit is contained in:
parent
7b0c067f4d
commit
111c4495d9
Notes:
github-actions[bot]
2024-12-05 20:42:43 +00:00
Author: https://github.com/Lubrsi
Commit: 111c4495d9
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
|
@ -726,6 +726,14 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "deleteTexture"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto handle = texture ? texture->handle() : 0;
|
||||
glDeleteTextures(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