mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
LibWeb/WebGL: Implement deleteFramebuffer
This commit is contained in:
parent
111c4495d9
commit
2e1702a14b
Notes:
github-actions[bot]
2024-12-05 20:42:38 +00:00
Author: https://github.com/Lubrsi Commit: https://github.com/LadybirdBrowser/ladybird/commit/2e1702a14be 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
|
@ -78,7 +78,7 @@ interface mixin WebGLRenderingContextBase {
|
|||
undefined cullFace(GLenum mode);
|
||||
|
||||
undefined deleteBuffer(WebGLBuffer? buffer);
|
||||
[FIXME] undefined deleteFramebuffer(WebGLFramebuffer? framebuffer);
|
||||
undefined deleteFramebuffer(WebGLFramebuffer? framebuffer);
|
||||
undefined deleteProgram(WebGLProgram? program);
|
||||
[FIXME] undefined deleteRenderbuffer(WebGLRenderbuffer? renderbuffer);
|
||||
undefined deleteShader(WebGLShader? shader);
|
||||
|
|
|
@ -726,6 +726,14 @@ public:
|
|||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "deleteFramebuffer"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto handle = framebuffer ? framebuffer->handle() : 0;
|
||||
glDeleteFramebuffers(1, &handle);
|
||||
)~~~");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (function.name == "deleteTexture"sv) {
|
||||
function_impl_generator.append(R"~~~(
|
||||
auto handle = texture ? texture->handle() : 0;
|
||||
|
|
Loading…
Reference in a new issue