[PATCH 4/4] d3d9: Surfaces always have resource type WINED3DRTYPE_SURFACE.
hverbeet at gmail.com
Tue Mar 8 17:18:48 CST 2011
On 8 March 2011 23:48, Stefan Dösinger <stefandoesinger at gmx.at> wrote:
> Actually I think we have a test that shows that if the surface is part of a texture it has resource type WINED3DRTYPE_TEXTURE. (Unverified, it's too late so I am too lazy to look for the exact test atm)
It's not working very well then, surfaces really do always have
D3DRTYPE_SURFACE as resource type in Wine. Note that returning
D3DRTYPE_TEXTURE for surfaces that are part of a texture would also
imply that you can't distinguish between a surface and a texture
IDirect3DResource9 pointer without doing QueryInterface() calls.
More information about the wine-devel