Henri Verbeet : ddraw: Set the render target to the wined3d frontbuffer on D3D device cleanup.
Alexandre Julliard
julliard at winehq.org
Thu Nov 24 15:04:37 CST 2011
Module: wine
Branch: master
Commit: 21bd722c46b406151c4b327b50ca56fa8afcfd00
URL: http://source.winehq.org/git/wine.git/?a=commit;h=21bd722c46b406151c4b327b50ca56fa8afcfd00
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed Nov 23 21:14:53 2011 +0100
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.
---
dlls/ddraw/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index e678e90..ccbdb1a 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -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))
More information about the wine-cvs
mailing list