Commit 0bceec1b authored by Markus Amsler's avatar Markus Amsler Committed by Alexandre Julliard

wined3d: Call the depth stencil destroy callback function.

parent fdfb10e0
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment