[PATCH v2 1/1] wined3d: Cast format_id when comparing it to the last format index.