[PATCH 5/6] wined3d: Make the adapter responsible for context destruction and allocation.