[PATCH 3/6] wined3d: Make the adapter responsible for initialising and de-initialising 3D.