[PATCH v2 2/6] wined3d: Create device wined3d_state dynamically.