Changelog : dlls/ddraw/dsurface/main.c : Main_DirectDrawSurface_QueryInterface Enable creation of a IDirect3DTexture2 from a surface Christian Costa titan.costa@wanadoo.fr
Index: main.c =================================================================== RCS file: /home/wine/wine/dlls/ddraw/dsurface/main.c,v retrieving revision 1.28 diff -u -r1.28 main.c --- main.c 26 Sep 2002 03:20:07 -0000 1.28 +++ main.c 10 Oct 2002 21:08:19 -0000 @@ -165,11 +165,22 @@ This->ref++; return is_OpenGL_dx3(riid, This, (IDirect3DDeviceImpl**)ppObj)?S_OK:E_NOINTERFACE; } - else if (IsEqualGUID( &IID_IDirect3DTexture, riid ) ) + else if (IsEqualGUID( &IID_IDirect3DTexture, riid )) { LPDIRECT3DTEXTURE iface; This->ref++; iface = d3dtexture_create(This); + if (iface) { + *ppObj = (LPVOID)iface; + return S_OK; + } else + return E_NOINTERFACE; + } + else if (IsEqualGUID( &IID_IDirect3DTexture2, riid )) + { + LPDIRECT3DTEXTURE2 iface; + This->ref++; + iface = d3dtexture2_create(This); if (iface) { *ppObj = (LPVOID)iface; return S_OK;