mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb/WebGL: Return GL_INVALID_ENUM for unknown buffer parameter names
This commit is contained in:
parent
776328e2e7
commit
dad30672d9
|
|
@ -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…
Reference in New Issue
Block a user