Commit 1b726498 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Set all render targets to NULL in IWineD3DDeviceImpl_Uninit3D().

parent 16a2ea5c
......@@ -2218,6 +2218,11 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface,
}
}
for (i = 1; i < gl_info->limits.buffers; ++i)
{
IWineD3DDevice_SetRenderTarget(iface, i, NULL, FALSE);
}
TRACE("Releasing the render target at %p\n", This->render_targets[0]);
IWineD3DSurface_Release((IWineD3DSurface *)This->render_targets[0]);
......
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