wined3d: Call the depth stencil destroy callback function.

This commit is contained in:
Markus Amsler 2006-12-18 00:16:40 +01:00 committed by Alexandre Julliard
parent fdfb10e02b
commit 0bceec1be8
1 changed files with 1 additions and 1 deletions

View File

@ -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;