From 0bceec1be8d1253230479709ce3d1172dbe495a0 Mon Sep 17 00:00:00 2001 From: Markus Amsler Date: Mon, 18 Dec 2006 00:16:40 +0100 Subject: [PATCH] wined3d: Call the depth stencil destroy callback function. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ff3c9879387..5ff0b34e1e5 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2189,7 +2189,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D This->renderTarget = NULL; if (This->depthStencilBuffer) { - if(D3DCB_DestroyDepthStencilSurface > 0) { + if(D3DCB_DestroyDepthStencilSurface(This->depthStencilBuffer) > 0) { FIXME("(%p) Something's still holding the depthStencilBuffer\n", This); } This->depthStencilBuffer = NULL;