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

@@ -197,6 +197,7 @@ public:
GC::Root<WebGLShaderPrecisionFormat> get_shader_precision_format(WebIDL::UnsignedLong shadertype, WebIDL::UnsignedLong precisiontype);
Optional<String> get_shader_info_log(GC::Root<WebGLShader> shader);
Optional<String> get_shader_source(GC::Root<WebGLShader> shader);
JS::Value get_uniform(GC::Root<WebGLProgram> program, GC::Root<WebGLUniformLocation> location);
GC::Root<WebGLUniformLocation> get_uniform_location(GC::Root<WebGLProgram> program, String name);
JS::Value get_vertex_attrib(WebIDL::UnsignedLong index, WebIDL::UnsignedLong pname);
void hint(WebIDL::UnsignedLong target, WebIDL::UnsignedLong mode);