LibWeb/WebGL: Set INVALID_OPERATION if object does not belong to context

This commit is contained in:
Aliaksandr Kalenik 2024-12-17 16:17:37 +01:00 committed by Alexander Kalenik
commit 07635d4554
Notes: github-actions[bot] 2024-12-19 12:39:36 +00:00
3 changed files with 79 additions and 20 deletions

View file

@ -23,7 +23,7 @@ public:
String label() const { return m_label; }
void set_label(String const& label) { m_label = label; }
GLuint handle() const { return m_handle; }
ErrorOr<GLuint> handle(WebGLRenderingContextBase const* context) const;
protected:
explicit WebGLObject(JS::Realm&, WebGLRenderingContextBase&, GLuint handle);