From 2b1b5dba43dfffc1550a4308c2bf7dd7b37c838d Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 19 Apr 2011 20:05:49 +0200 Subject: [PATCH] ddraw: Don't bother unsetting resources on surface destruction. Uninit3D() / stateblock destruction already takes care of this. --- dlls/ddraw/surface.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c index 560132109b3..c2568191297 100644 --- a/dlls/ddraw/surface.c +++ b/dlls/ddraw/surface.c @@ -361,10 +361,6 @@ static ULONG WINAPI ddraw_surface7_Release(IDirectDrawSurface7 *iface) if((ddraw->d3d_initialized) && (This == ddraw->d3d_target)) { TRACE("(%p) Destroying the render target, uninitializing D3D\n", This); - /* Unset any index buffer, just to be sure */ - IWineD3DDevice_SetIndexBuffer(ddraw->wineD3DDevice, NULL, WINED3DFMT_UNKNOWN); - IWineD3DDevice_SetDepthStencilSurface(ddraw->wineD3DDevice, NULL); - IWineD3DDevice_SetVertexDeclaration(ddraw->wineD3DDevice, NULL); for (i = 0; i < ddraw->numConvertedDecls; ++i) { wined3d_vertex_declaration_decref(ddraw->decls[i].decl);