LibWeb/WebGL2: Implement fenceSync

This commit is contained in:
Luke Wilde 2024-12-13 14:42:03 +00:00 committed by Alexander Kalenik
commit 135ceb387e
Notes: github-actions[bot] 2024-12-14 08:10:14 +00:00
7 changed files with 26 additions and 6 deletions

View file

@ -13,13 +13,14 @@ namespace Web::WebGL {
GC_DEFINE_ALLOCATOR(WebGLSync);
GC::Ref<WebGLSync> WebGLSync::create(JS::Realm& realm, GLuint handle)
GC::Ref<WebGLSync> WebGLSync::create(JS::Realm& realm, GLsyncInternal handle)
{
return realm.create<WebGLSync>(realm, handle);
}
WebGLSync::WebGLSync(JS::Realm& realm, GLuint handle)
: WebGLObject(realm, handle)
WebGLSync::WebGLSync(JS::Realm& realm, GLsyncInternal handle)
: WebGLObject(realm, 0)
, m_sync_handle(handle)
{
}