Henri Verbeet : ddraw: Just set the render target to NULL in d3d_device_inner_Release().
Module: wine Branch: master Commit: 3c6d11706fd5d71c1781f75f19ddab5e9f91d7cb URL: http://source.winehq.org/git/wine.git/?a=commit;h=3c6d11706fd5d71c1781f75f19... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Sep 12 09:20:53 2013 +0200 ddraw: Just set the render target to NULL in d3d_device_inner_Release(). The wined3d front buffer is not a render target. --- dlls/ddraw/device.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 2c02d65..c0332d9 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -245,10 +245,7 @@ static ULONG WINAPI d3d_device_inner_Release(IUnknown *iface) if (This->vertex_buffer) wined3d_buffer_decref(This->vertex_buffer); - /* Set the device up to render to the front buffer since the back - * buffer will vanish soon. */ - wined3d_device_set_render_target(This->wined3d_device, 0, - This->ddraw->wined3d_frontbuffer, TRUE); + wined3d_device_set_render_target(This->wined3d_device, 0, NULL, FALSE); /* Release the wined3d device. This won't destroy it. */ if (!wined3d_device_decref(This->wined3d_device))
participants (1)
-
Alexandre Julliard