Fix OpenGL VSync

Hopefully this also works on Mac and Linux

The problem was that SwapInterval was always set to null and never changed. Because of that the error message popped up.