From 8d0ad2cf36a1ca4eaa2b408d33c2eb7d54bacd68 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 17 Aug 2009 09:39:08 +0200 Subject: [PATCH] wined3d: Remove a redundant IWineD3DDeviceImpl_MarkStateDirty() call. We should now correctly track the relevant state per-context. The IWineD3DDeviceImpl_SetViewport() call isn't quite correct for d3d8 and d3d9, Stefan still has a patch for that. --- dlls/wined3d/device.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 6afd5da99e5..5d779314529 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -6567,10 +6567,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface, viewport.MaxZ = 1.0f; viewport.MinZ = 0.0f; IWineD3DDeviceImpl_SetViewport(iface, &viewport); - /* Make sure the viewport state is dirty, because the render_offscreen thing affects it. - * SetViewport may catch NOP viewport changes, which would occur when switching between equally sized targets - */ - IWineD3DDeviceImpl_MarkStateDirty(This, STATE_VIEWPORT); } return WINED3D_OK; }