stop open gl rendering during ray tracing