The spec prohibits calling clEnqueueReleaseGLObjects with 0 for num_events_in_wait_list but a non-null event_wait_list. Special case passing a null wait list when there are no compute events to wait for.
The spec prohibits calling clEnqueueReleaseGLObjects with 0 for num_events_in_wait_list but a non-null event_wait_list. Special case passing a null wait list when there are no compute events to wait for.