Force the completion of all GL executions before switching the context