[PATCH 3/5] ddraw: Just set the render target to NULL in d3d_device_inner_Release().
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 12 02:20:53 CDT 2013
The wined3d front buffer is not a render target.
---
dlls/ddraw/device.c | 5 +----
1 file changed, 1 insertion(+), 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))
--
1.7.10.4
More information about the wine-patches
mailing list