Stefan Dösinger : wined3d: Move lastActiveRenderTarget cleanup to the device.