glFenceSync

create a new sync object and insert it into the GL command stream

Signature

glFenceSync( GLenum ( condition ) , GLbitfield ( flags ) )-> GLsync
glFenceSync( condition , flags ) -> <class 'OpenGL._opaque.GLsync_pointer'>

Parameters

VariablesDescription
condition
Specifies the condition that must be met to set the sync object's state to signaled. condition must be GL_SYNC_GPU_COMMANDS_COMPLETE .
flags
Specifies a bitwise combination of flags controlling the behavior of the sync object. No flags are presently defined for this operation and flags must be zero.
flags is a placeholder for anticipated future extensions of fence sync object capabilities.

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glFenceSync
OpenGLContext tests/arbsync.py Lines: 23, 27