[PATCH] d3dcompiler: Add a LUT to find compilation targets info. (try 3)
Alexandre Julliard
julliard at winehq.org
Fri May 10 09:37:05 CDT 2013
Christian Costa <titan.costa at gmail.com> writes:
> - if (strlen(target) != 6 || target[1] != 's' || target[2] != '_' || target[4] != '_')
> + for (i = 0; i < nb_targets; i++)
> {
> - FIXME("Unknown compilation target %s.\n", debugstr_a(target));
> - return D3DERR_INVALIDCALL;
> + if (!strcmp(target, targets_info[i].name) ||
> + (targets_info[i].altname && !strcmp(target, targets_info[i].altname)))
A binary search would be much better.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list