Module: wine Branch: master Commit: 0bceec1be8d1253230479709ce3d1172dbe495a0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0bceec1be8d1253230479709ce...
Author: Markus Amsler markus.amsler@oribi.org Date: Mon Dec 18 00:16:40 2006 +0100
wined3d: Call the depth stencil destroy callback function.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index ff3c987..5ff0b34 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -2189,7 +2189,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl 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;