[PATCH] wined3d: fix Unrecognized usage flags

Henri Verbeet hverbeet at gmail.com
Wed Apr 29 02:12:27 CDT 2015


Please use git send-email for sending patches.

On 28 April 2015 at 09:18, Sergey Isakov <isakov-sl at bk.ru> wrote:
> +    WINED3DUSAGE_TO_STR(WINED3DUSAGE_TEXTURE);
This is fine, but WINED3DUSAGE_OWNDC is missing here as well. Is "buf"
still larger enough after you add these flags?

> -    if (usage) FIXME("Unrecognized usage flag(s) %#x\n", usage);
> +    if (usage & ~WINED3DUSAGE_QUERY_MASK) FIXME("Unrecognized usage flag(s) %#x\n", usage);
I think it makes more sense to do this in the caller. It may make even
more sense to just merge debug_d3dusage() and debug_d3dusagequery().



More information about the wine-devel mailing list