LibWeb: Move WebGL error variable to WebGLRenderingContextBase

Implementations in both WebGL1 and WebGL2 were the same and most
probably will stay the same.
This commit is contained in:
Undefine 2025-11-05 20:15:09 +01:00 committed by Andreas Kling
parent f6f238d15c
commit e7aeb71d29
Notes: github-actions[bot] 2025-11-06 18:04:42 +00:00
7 changed files with 15 additions and 27 deletions

View file

@ -109,15 +109,6 @@ void WebGL2RenderingContext::needs_to_present()
m_canvas_element->paintable()->set_needs_display();
}
void WebGL2RenderingContext::set_error(GLenum error)
{
auto context_error = glGetError();
if (context_error != GL_NO_ERROR)
m_error = context_error;
else
m_error = error;
}
bool WebGL2RenderingContext::is_context_lost() const
{
dbgln_if(WEBGL_CONTEXT_DEBUG, "WebGLRenderingContext::is_context_lost()");