LibWeb: Make WebGLRenderingContextBase derive from PlatformObject

This resolves a bunch of FIXMEs and removes a bunch sketchy raw
pointers and hacks.
This commit is contained in:
Undefine
2025-12-01 22:01:17 +01:00
committed by Alexander Kalenik
parent cda2330658
commit 2107142cdb
Notes: github-actions[bot] 2026-01-10 12:23:06 +00:00
42 changed files with 146 additions and 149 deletions

View File

@@ -16,12 +16,12 @@ namespace Web::WebGL {
GC_DEFINE_ALLOCATOR(WebGLProgram);
GC::Ref<WebGLProgram> WebGLProgram::create(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
GC::Ref<WebGLProgram> WebGLProgram::create(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context, GLuint handle)
{
return realm.create<WebGLProgram>(realm, context, handle);
}
WebGLProgram::WebGLProgram(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
WebGLProgram::WebGLProgram(JS::Realm& realm, GC::Ref<WebGLRenderingContextBase> context, GLuint handle)
: WebGLObject(realm, context, handle)
{
}