mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
LibWeb/WebGL2: Implement fenceSync
This commit is contained in:
parent
bc9ae79a47
commit
135ceb387e
Notes:
github-actions[bot]
2024-12-14 08:10:14 +00:00
Author: https://github.com/Lubrsi
Commit: 135ceb387e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2905
7 changed files with 26 additions and 6 deletions
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue