[PATCH 4/5] wined3d: Remove a redundant IWineD3DDeviceImpl_MarkStateDirty() call.
Henri Verbeet
hverbeet at codeweavers.com
Mon Aug 17 02:39:08 CDT 2009
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 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 6afd5da..5d77931 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;
}
--
1.6.0.6
More information about the wine-patches
mailing list