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

@ -81,8 +81,6 @@ private:
// - clear, drawArrays, or drawElements has been called while the drawing buffer is the currently bound framebuffer
bool m_should_present { true };
GLenum m_error { 0 };
Vector<WebIDL::UnsignedLong> m_enabled_compressed_texture_formats;
// Extensions
@ -94,8 +92,6 @@ private:
GC::Ptr<Extensions::WebGLCompressedTextureS3tc> m_webgl_compressed_texture_s3tc_extension;
GC::Ptr<Extensions::WebGLCompressedTextureS3tcSrgb> m_webgl_compressed_texture_s3tc_srgb_extension;
GC::Ptr<Extensions::WebGLDrawBuffers> m_webgl_draw_buffers_extension;
virtual void set_error(GLenum error) override;
};
void fire_webgl_context_event(HTML::HTMLCanvasElement& canvas_element, FlyString const& type);