LibWeb/WebGL: Make getExtension spec-compliant

Namely:
- Perform case-insensitive matching
- Return the same extension objects every time
- Only enable the extension if it's supported by the current context
This commit is contained in:
Luke Wilde 2025-01-10 13:39:53 +00:00 committed by Andreas Kling
commit cfbd125e57
Notes: github-actions[bot] 2025-01-21 20:37:52 +00:00
3 changed files with 39 additions and 4 deletions

View file

@ -841,6 +841,8 @@ struct OscillatorOptions;
}
namespace Web::WebGL {
class ANGLEInstancedArrays;
class OESVertexArrayObject;
class OpenGLContext;
class WebGL2RenderingContext;
class WebGLActiveInfo;
@ -858,6 +860,7 @@ class WebGLSync;
class WebGLTexture;
class WebGLUniformLocation;
class WebGLVertexArrayObject;
class WebGLVertexArrayObjectOES;
}
namespace Web::WebIDL {