wined3d: Keep better track of where we're using wined3d contexts.

The idea here is that we can restore the thread's current GL context on
context_release() if it doesn't correspond to the current wined3d context on
context_acquire().
14 files changed