Henri Verbeet : wined3d: Restore the thread' s previous GL context in context_destroy_gl_resources().