[1/8] d3d8: Use D3DPOOL <-> WINED3DPOOL enum conversion functions instead of implicit conversions (clang)

Alexandre Julliard julliard at winehq.org
Tue May 31 05:12:19 CDT 2011


Stefan Dösinger <stefandoesinger at gmx.at> writes:

> Am 31.05.2011 um 11:10 schrieb Alexandre Julliard:
>> I still don't see the point of that kind of switch statement. To be
>> honest I don't see either why we even need different enum types in the
>> first place.
> Because for most enums the d3d8 ones differ from the d3d9 ones but
> have the same name. We cannot include d3d9types.h in d3d8 and ddraw
> but we still have to talk to wined3d.

Most enums are identical, or just have an extra value or two. I don't
see why you can't pass either type to wined3d since they have the same
name.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list