No subject
Wed Feb 20 09:39:33 CST 2008
stDevice/OnResetDevice=0A=0A---=0A dlls/d3dx9_36/offscreen.c | 52 +++++++=
++++++++++++++++++++++++++++++++++++-=0A 1 files changed, 50 insertions(+),=
2 deletions(-)=0A=0Adiff --git a/dlls/d3dx9_36/offscreen.c b/dlls/d3dx9_36=
/offscreen.c=0Aindex 3572ff7..68731db 100644=0A--- a/dlls/d3dx9_36/offscree=
n.c=0A+++ b/dlls/d3dx9_36/offscreen.c=0A@@ -277,17 +277,65 @@ static HRESUL=
T WINAPI ID3DXRenderToSurfaceImpl_EndScene(LPD3DXRENDERTOSURFACE if=0A =
return D3D_OK;=0A }=0A =0A+ /**********************************************=
**************=0A+ * ID3DXRenderToSurfaceImpl_OnLostDevice=0A+ =
*=0A+ * Releases all device objects.=0A+ *=0A+ * PARAMS=0A+ * if=
ace [I] RTS object=0A+ *=0A+ * RETURNS=0A+ * Success: D3D_OK=
=0A+ * Failure: D3DERR_INVALIDCALL=0A+ *=0A+ * TODOS=0A+ * Find=
out when this function returns D3DERR_INVALIDCALL=0A+ */=0A static HRESU=
LT WINAPI ID3DXRenderToSurfaceImpl_OnLostDevice(LPD3DXRENDERTOSURFACE iface=
)=0A {=0A ID3DXRenderToSurfaceImpl *This=3D(ID3DXRenderToSurfaceImpl*)i=
face;=0A- FIXME("(%p): stub\n", This);=0A+ TRACE("(%p): relay\n", Thi=
s);=0A+=0A+ if(This->buffer!=3DNULL && This->buffer=3D=3DThis->target)=
=0A+ if(IUnknown_Release(This->buffer)) /* This is the case if we ha=
ven't called EndScene yet */=0A+ IUnknown_Release(This->buffer);=
=0A+ if(This->stencil!=3DNULL) IUnknown_Release(This->stencil);=0A+ i=
f(This->stateblock!=3DNULL) IUnknown_Release(This->stateblock);=0A+ if(T=
his->oldstencil!=3DNULL) IUnknown_Release(This->oldstencil);=0A+ if(This=
->oldtarget!=3DNULL) IUnknown_Release(This->oldtarget);=0A+=0A return D=
3D_OK;=0A }=0A =0A+ /******************************************************=
******=0A+ * ID3DXRenderToSurfaceImpl_OnResetDevice=0A+ *=0A+ =
* Releases all device objects.=0A+ *=0A+ * PARAMS=0A+ * iface =
[I] RTS object=0A+ *=0A+ * RETURNS=0A+ * Success: D3D_OK=0A+ * =
Failure: D3DERR_INVALIDCALL=0A+ *=0A+ * TODOS=0A+ * Find out when=
this function returns D3DERR_INVALIDCALL=0A+ * Find out wether this fu=
nction does anything at all=0A+ */=0A static HRESULT WINAPI ID3DXRenderTo=
SurfaceImpl_OnResetDevice(LPD3DXRENDERTOSURFACE iface)=0A {=0A ID3DXRen=
derToSurfaceImpl *This=3D(ID3DXRenderToSurfaceImpl*)iface;=0A- FIXME("(%=
p): stub\n", This);=0A+ TRACE("(%p): relay\n", This);=0A+=0A+ /* Runn=
ing several test cases with WINEDEBUG=3D"+all" enabled this function=0A+ =
didn't produce much output, so it seems it doesn't do anything here...=
=0A+ Requires some more testing on windows though.=0A+ However,=
as D3DXCreateRenderToSurface neither does anything but=0A+ setting s=
ome pointers to 0 it would even make sense that this=0A+ function is =
not supposed to do anything at all. */=0A+=0A return D3D_OK;=0A }=0A =
=0A-- =0A1.5.3.7=0A=0A
--b5d7ded298ec876db1cb1cfa027b3df70--
More information about the wine-patches
mailing list