GLDELETESYNC(3G)
π glDeleteSync(3G) β the "bye bestie" page
okay so this is glDeleteSync from section 3G of the manual (yes, the 3G is the manual name, we love a little OpenGL corner of the docs β¨). It's short, it's sweet, and it's literally just "how to yeet a sync object into the void". Let's go π«Ά
πΈ NAME
glDeleteSync β delete a sync object πβ¨
π C SPECIFICATION
void glDeleteSync(GLsync sync);
that's it. one parameter. one job. iconic behavior honestly.
π PARAMETERS
syncβ the sync object you want to be deleted. the one. the target. the soon-to-be-gone π¦
β DESCRIPTION
okay so here's the tea, bestie π΅
glDeleteSync deletes the sync object that you passed in as sync. Simple right? Well, kind of, because there's two whole timelines here depending on what's going on:
- If the fence command that corresponds to your
syncobject has already completed, or if there are noglWaitSync()orglClientWaitSync()commands blocking onsync, then the object is deleted immediately. instant. poof. gone. slay π - Otherwise β meaning something is still holding on β
syncgets flagged for deletion. It doesn't vanish right away; it gets deleted later, when it's no longer associated with any fence command AND is no longer blocking anyglWaitSync()orglClientWaitSync()command. it's giving "your Uber is arriving" energy π
Either way? In either case, once glDeleteSync returns, the name sync is invalid and can no longer be used to refer to the sync object. periodt. the name is cooked. don't try it π₯
Also β glDeleteSync will silently ignore a sync value of zero. no error, no drama, just vibes. zero gets a free pass π
π§ NOTES
lowkey important: glSync is only supported if the GL version is 3.2 or greater, or if the ARB_sync extension is supported. so do a little vibe check on your context before you come at this function π¦
π ERRORS
GL_INVALID_VALUEis generated ifsyncis neither zero nor the name of a sync object. so likeβ¦ it has to be one of those two things. anything else and the GL is gonna be like "girl what" π
π VERSION SUPPORT
the whole function/feature name here is glDeleteSync, and here's the version tea across every OpenGL version listed on the page:
- 2.0 β
-(nope π ) - 2.1 β
- - 3.0 β
- - 3.1 β
- - 3.2 β
β(here we go!! π) - 3.3 β
β - 4.0 β
β - 4.1 β
β - 4.2 β
β - 4.3 β
β - 4.4 β
β - 4.5 β
β
so it's a - for the whole 2.0 through 3.1 era, and then β all the way from 3.2 to 4.5. consistent queen π
π¦ SEE ALSO
go read these too, they're the friend group π
glFenceSync()glWaitSync()glClientWaitSync()
π COPYRIGHT
Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
Copyright Β© 2010-2014 Khronos Group
and that's the whole page, bestie π₯Ή source is [FIXME: source] and the date on this lil beauty is 08/09/2021 β so go forth, delete your sync objects responsibly, and remember: the name is invalid afterwards, no cap π
β¨π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms