mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Deduplicate WebGL1 implementations from WebGL2
This makes the WebGL2 implementation file inherit from the WebGL1 implementation file. This is actually closer to what the IDL files describe and allows us to not have to maintain two copies of the same functions.
This commit is contained in:
parent
7a1668fe22
commit
5b88b76b84
Notes:
github-actions[bot]
2025-11-05 01:20:37 +00:00
Author: https://github.com/cqundefine
Commit: 5b88b76b84
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6676
Reviewed-by: https://github.com/kalenikaliaksandr ✅
Reviewed-by: https://github.com/konradekk
4 changed files with 384 additions and 2304 deletions
|
|
@ -153,6 +153,17 @@ protected:
|
|||
GC::Ptr<WebGLTexture> m_texture_binding_2d;
|
||||
GC::Ptr<WebGLTexture> m_texture_binding_cube_map;
|
||||
|
||||
// FIXME: Those are WebGL2 only but those need to be accessible from shared methods
|
||||
GC::Ptr<WebGLBuffer> m_uniform_buffer_binding;
|
||||
GC::Ptr<WebGLBuffer> m_copy_read_buffer_binding;
|
||||
GC::Ptr<WebGLBuffer> m_copy_write_buffer_binding;
|
||||
GC::Ptr<WebGLBuffer> m_transform_feedback_buffer_binding;
|
||||
GC::Ptr<WebGLBuffer> m_pixel_pack_buffer_binding;
|
||||
GC::Ptr<WebGLBuffer> m_pixel_unpack_buffer_binding;
|
||||
GC::Ptr<WebGLTexture> m_texture_binding_2d_array;
|
||||
GC::Ptr<WebGLTexture> m_texture_binding_3d;
|
||||
GC::Ptr<WebGLTransformFeedback> m_transform_feedback_binding;
|
||||
|
||||
NonnullOwnPtr<OpenGLContext> m_context;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue