Fix OpenGL video backend when using "render to main" on Windows.