mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02: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:
committed by
Jelle Raaijmakers
parent
a2c659ee6b
commit
1bc7e9d3f8
Notes:
github-actions[bot]
2025-11-01 23:55:14 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/1bc7e9d3f84 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6663 Reviewed-by: https://github.com/gmta ✅
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user