LibWeb: Stub out WebGL getUniform

This makes the function return a dummy value instead of undefined
as that fixes a crash while capturing on SpectorJS.
This commit is contained in:
Undefine 2025-11-01 17:02:36 +01:00 committed by Jelle Raaijmakers
parent a2c659ee6b
commit 1bc7e9d3f8
Notes: github-actions[bot] 2025-11-01 23:55:14 +00:00
5 changed files with 15 additions and 1 deletions

View file

@ -1666,6 +1666,12 @@ Optional<String> WebGLRenderingContextImpl::get_shader_source(GC::Root<WebGLShad
return String::from_utf8_without_validation(ReadonlyBytes { shader_source.data(), static_cast<size_t>(shader_source_length - 1) });
}
JS::Value WebGLRenderingContextImpl::get_uniform(GC::Root<WebGLProgram>, GC::Root<WebGLUniformLocation>)
{
dbgln("FIXME: Implement get_uniform");
return JS::Value(0);
}
GC::Root<WebGLUniformLocation> WebGLRenderingContextImpl::get_uniform_location(GC::Root<WebGLProgram> program, String name)
{
m_context->make_current();