[PATCH 1/1] wined3d: Check that format_id is >= 0 before assuming it's an index.