wined3d: Implement mode setting in the adapter instead of the device.