[PATCH 4/5] ddraw: Unset the viewports active device in IDirect3DDeviceImpl_3_DeleteViewport().
Henri Verbeet
hverbeet at codeweavers.com
Tue Apr 19 13:05:51 CDT 2011
---
dlls/ddraw/device.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 984afc3..11ac291 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -829,6 +829,7 @@ IDirect3DDeviceImpl_3_DeleteViewport(IDirect3DDevice3 *iface,
{
if (prev_viewport == NULL) This->viewport_list = cur_viewport->next;
else prev_viewport->next = cur_viewport->next;
+ vp->active_device = NULL;
/* TODO : add desactivate of the viewport and all associated lights... */
LeaveCriticalSection(&ddraw_cs);
return D3D_OK;
--
1.7.3.4
More information about the wine-patches
mailing list