2011/5/16 Frédéric Delanoy <frederic.dela...@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.


Reply via email to