mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/WebGL: Return GL_INVALID_ENUM for unknown buffer parameter names
This commit is contained in:
parent
776328e2e7
commit
dad30672d9
Notes:
github-actions[bot]
2024-12-14 08:09:47 +00:00
Author: https://github.com/Lubrsi
Commit: dad30672d9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2905
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ static void generate_get_buffer_parameter(SourceGenerator& generator)
|
|||
|
||||
generator.appendln(R"~~~(
|
||||
default:
|
||||
TODO();
|
||||
dbgln("Unknown WebGL buffer parameter name: {:x}", pname);
|
||||
set_error(GL_INVALID_ENUM);
|
||||
return JS::js_null();
|
||||
})~~~");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue