wined3d: Make sure we have an active GL context in delete_opengl_contexts().