d3d: avoid implicit conversion warnings from identical enumeration types D3DPOOL and WINED3DPOOL (Clang)

Henri Verbeet hverbeet at gmail.com
Mon May 16 07:17:47 CDT 2011


2011/5/16 Frédéric Delanoy <frederic.delanoy at gmail.com>:
> Indeed. I'm checking a couple of other automatic non-checked enum
> conversions, and those can be problematic; e.g. D3DRESOURCETYPE and
> WINED3DRESOURCETYPE are not identical but are autoconverted without
> any kind of check.
>
The resource type handling in e.g. d3d9 is really ugly, but should be
safe in practice. IDirect3DCubeTexture9Impl_GetType() should only ever
return D3DRTYPE_CUBETEXTURE for example.



More information about the wine-devel mailing list