opengl: fix an crash/hang on exit because opengl needs the init and end to be done in the same thread.
Attach a file by drag & drop or click to upload