LibWeb: Stubout WebGL2 getParameter(MAX_CLIENT_WAIT_TIMEOUT_WEBGL)

The spec actually mandates that clientWaitSync actually has a time
limit and this is a way to get it. For now just return infinity as this
is required of SpectorJS to work.
This commit is contained in:
Undefine 2025-11-01 16:47:25 +01:00 committed by Jelle Raaijmakers
parent 78aa3467e9
commit bc3761b40d
Notes: github-actions[bot] 2025-11-01 23:55:41 +00:00
2 changed files with 5 additions and 0 deletions

View file

@ -2931,6 +2931,10 @@ JS::Value WebGL2RenderingContextImpl::get_parameter(WebIDL::UnsignedLong pname)
}
case UNPACK_FLIP_Y_WEBGL:
return JS::Value(m_unpack_flip_y);
case MAX_CLIENT_WAIT_TIMEOUT_WEBGL: {
// FIXME: Make this an actual limit
return JS::js_infinity();
}
default:
dbgln("Unknown WebGL parameter name: {:x}", pname);
set_error(GL_INVALID_ENUM);