Stefan Dösinger : wined3d: Destroy GL contexts before changing the screen resolution.