Don't rely on SDL_GL_SwapWindow to synchronize rendering
Instead, use glFinish to ensure rendering operations are finished prior to xrReleaseSwapchainImage.
This allows us to only call SDL_GL_SwapWindow when we update the SDL window.
References: monado/monado#43 (closed)
Edited by Simon Ser