Reenabled vsync and some other OpenGL attributes