mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb/WebGL: Set INVALID_OPERATION if object does not belong to context
This commit is contained in:
parent
fbae24f7a9
commit
07635d4554
Notes:
github-actions[bot]
2024-12-19 12:39:36 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 07635d4554
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2965
3 changed files with 79 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue