Commit 3c6d1170 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Just set the render target to NULL in d3d_device_inner_Release().

The wined3d front buffer is not a render target.
parent 1a786678
...@@ -245,10 +245,7 @@ static ULONG WINAPI d3d_device_inner_Release(IUnknown *iface) ...@@ -245,10 +245,7 @@ static ULONG WINAPI d3d_device_inner_Release(IUnknown *iface)
if (This->vertex_buffer) if (This->vertex_buffer)
wined3d_buffer_decref(This->vertex_buffer); wined3d_buffer_decref(This->vertex_buffer);
/* Set the device up to render to the front buffer since the back wined3d_device_set_render_target(This->wined3d_device, 0, NULL, FALSE);
* buffer will vanish soon. */
wined3d_device_set_render_target(This->wined3d_device, 0,
This->ddraw->wined3d_frontbuffer, TRUE);
/* Release the wined3d device. This won't destroy it. */ /* Release the wined3d device. This won't destroy it. */
if (!wined3d_device_decref(This->wined3d_device)) if (!wined3d_device_decref(This->wined3d_device))
......
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