logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glDeleteSync - delete a sync object

C Specification

voidglDeleteSync(GLsyncsync);

Description

glDeleteSync deletes the sync object specified by sync. If the fence command corresponding to the
       specified sync object has completed, or if no glWaitSync() or glClientWaitSync() commands are blocking on
       sync, the object is deleted immediately. Otherwise, sync is flagged for deletion and will be deleted when
       it is no longer associated with any fence command and is no longer blocking any glWaitSync() or
       glClientWaitSync() command. In either case, after glDeleteSync returns, the name sync is invalid and can
       no longer be used to refer to the sync object.

       glDeleteSync will silently ignore a sync value of zero.

Errors

GL_INVALID_VALUE is generated if sync is neither zero or the name of a sync object.

Name

       glDeleteSync - delete a sync object

Notes

glSync is only supported if the GL version is 3.2 or greater, or if the ARB_sync extension is supported.

Parameters

sync
           The sync object to be deleted.

See Also

glFenceSync(), glWaitSync(), glClientWaitSync()

Version Support

       ┌──────────────┬───────────────────────────────────────────────────────────────────────┐
       │              │                OpenGLVersion                                         │
       ├──────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /            │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature      │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name         │     │     │     │     │     │     │     │     │     │     │     │     │
       ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glDeleteSync │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └──────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also