# glDeleteSync

## Name

glDeleteSync — delete a sync object

## C Specification

 void glDeleteSync( GLsync sync);

## Parameters

sync

The sync object to be deleted.

## 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.

## Notes

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

## Errors

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

## Version Support

OpenGL Version
Function / Feature Name 2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5
glDeleteSync - - - -