Added threading to GL video window.