[PATCH v2 1/6] wined3d: Access device state through its pointer.