Henri Verbeet : wined3d: Pass a wined3d_state structure to device_preload_texture().