Commit 06ff1c71 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

ddraw: Unset the viewport if the current vp is deleted.

parent 0209b0a9
......@@ -833,6 +833,13 @@ static HRESULT WINAPI d3d_device3_DeleteViewport(IDirect3DDevice3 *iface, IDirec
return DDERR_INVALIDPARAMS;
}
if (device->current_viewport == vp)
{
TRACE("Deleting current viewport, unsetting and releasing\n");
IDirect3DViewport3_Release(viewport);
device->current_viewport = NULL;
}
vp->active_device = NULL;
list_remove(&vp->entry);
......
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