mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Fix WebGL getError
getError was just calling out to glGetError and never checking our error value that we were maintaining ourselves.
This commit is contained in:
parent
e7aeb71d29
commit
044ac2dd28
Notes:
github-actions[bot]
2025-11-06 18:04:36 +00:00
Author: https://github.com/cqundefine
Commit: 044ac2dd28
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6711
Reviewed-by: https://github.com/awesomekling
3 changed files with 17 additions and 1 deletions
|
|
@ -1535,7 +1535,7 @@ JS::Value WebGLRenderingContextImpl::get_parameter(WebIDL::UnsignedLong pname)
|
|||
WebIDL::UnsignedLong WebGLRenderingContextImpl::get_error()
|
||||
{
|
||||
m_context->make_current();
|
||||
return glGetError();
|
||||
return get_error_value();
|
||||
}
|
||||
|
||||
JS::Value WebGLRenderingContextImpl::get_program_parameter(GC::Root<WebGLProgram> program, WebIDL::UnsignedLong pname)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue