[Git][wine/wine][master] wined3d: Cast format_id when comparing it to the last format index.