[PATCH 2/4] wined3d: Access device state through its pointer.