wined3d: Use context->valid in context_destroy_gl_resources(). Instead of relying on wglMakeCurrent() to do what we want.