LibWeb: Implement WebGL getParameter(COMPRESSED_TEXTURE_FORMATS)

This commit is contained in:
Undefine 2025-11-01 16:49:54 +01:00 committed by Jelle Raaijmakers
parent bc3761b40d
commit 932a3328a3
Notes: github-actions[bot] 2025-11-01 23:55:34 +00:00
7 changed files with 50 additions and 0 deletions

View file

@ -51,6 +51,7 @@ public:
WebIDL::Long drawing_buffer_height() const;
virtual bool ext_texture_filter_anisotropic_extension_enabled() const override;
virtual ReadonlySpan<WebIDL::UnsignedLong> enabled_compressed_texture_formats() const override;
private:
virtual void initialize(JS::Realm&) override;
@ -81,6 +82,8 @@ private:
GLenum m_error { 0 };
Vector<WebIDL::UnsignedLong> m_enabled_compressed_texture_formats;
// Extensions
// "Multiple calls to getExtension with the same extension string, taking into account case-insensitive comparison, must return the same object as long as the extension is enabled."
GC::Ptr<Extensions::ANGLEInstancedArrays> m_angle_instanced_arrays_extension;