mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb/WebGL: Implement bindFramebuffer
This commit is contained in:
parent
c5e9615c29
commit
b0bcecfc53
Notes:
github-actions[bot]
2024-12-05 20:43:45 +00:00
Author: https://github.com/Lubrsi
Commit: b0bcecfc53
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 3 additions and 3 deletions
|
@ -102,7 +102,7 @@ static void generate_get_parameter(SourceGenerator& generator)
|
|||
{ "DEPTH_WRITEMASK"sv, { "GLboolean"sv } },
|
||||
{ "DITHER"sv, { "GLboolean"sv } },
|
||||
{ "ELEMENT_ARRAY_BUFFER_BINDING"sv, { "WebGLBuffer"sv } },
|
||||
// FIXME: { "FRAMEBUFFER_BINDING"sv, { "WebGLFramebuffer"sv } },
|
||||
{ "FRAMEBUFFER_BINDING"sv, { "WebGLFramebuffer"sv } },
|
||||
{ "FRONT_FACE"sv, { "GLenum"sv } },
|
||||
{ "GENERATE_MIPMAP_HINT"sv, { "GLenum"sv } },
|
||||
{ "GREEN_BITS"sv, { "GLint"sv } },
|
||||
|
@ -209,7 +209,7 @@ static void generate_get_parameter(SourceGenerator& generator)
|
|||
auto array_buffer = JS::ArrayBuffer::create(m_realm, move(byte_buffer));
|
||||
return JS::@type_name@::create(m_realm, @element_count@, array_buffer);
|
||||
)~~~");
|
||||
} else if (type_name == "WebGLProgram"sv || type_name == "WebGLBuffer"sv || type_name == "WebGLTexture"sv) {
|
||||
} else if (type_name == "WebGLProgram"sv || type_name == "WebGLBuffer"sv || type_name == "WebGLTexture"sv || type_name == "WebGLFramebuffer"sv) {
|
||||
impl_generator.append(R"~~~(
|
||||
GLint result;
|
||||
glGetIntegerv(GL_@parameter_name@, &result);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue