mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
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:
parent
78aa3467e9
commit
bc3761b40d
Notes:
github-actions[bot]
2025-11-01 23:55:41 +00:00
Author: https://github.com/cqundefine
Commit: bc3761b40d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6663
Reviewed-by: https://github.com/gmta ✅
2 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue