mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
ddraw: Set the render target to the wined3d frontbuffer on D3D device cleanup.
We don't need any specific render target here, since without a D3D device we can't do any rendering anyway. We just want to avoid pointing to something that was free'd.
This commit is contained in:
parent
f69968bb4a
commit
21bd722c46
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ IDirect3DDeviceImpl_7_Release(IDirect3DDevice7 *iface)
|
|||
/* 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->d3d_target->wined3d_surface, TRUE);
|
||||
This->ddraw->wined3d_frontbuffer, TRUE);
|
||||
|
||||
/* Release the WineD3DDevice. This won't destroy it. */
|
||||
if (!wined3d_device_decref(This->wined3d_device))
|
||||
|
|
Loading…
Reference in a new issue