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