Henri Verbeet : wined3d: Do not mark invalid blend matrices dirty.
Alexandre Julliard
julliard at winehq.org
Fri Sep 3 10:07:09 CDT 2010
Module: wine
Branch: master
Commit: e998fffc8f19b860102341b50847367f6d98e15c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e998fffc8f19b860102341b50847367f6d98e15c
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Sep 2 19:25:02 2010 +0200
wined3d: Do not mark invalid blend matrices dirty.
---
dlls/wined3d/device.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 517e873..5116961 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2431,7 +2431,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetTransform(IWineD3DDevice *iface, W
/* Handled by the state manager */
}
- IWineD3DDeviceImpl_MarkStateDirty(This, STATE_TRANSFORM(d3dts));
+ if (d3dts < WINED3DTS_WORLDMATRIX(This->adapter->gl_info.limits.blends))
+ IWineD3DDeviceImpl_MarkStateDirty(This, STATE_TRANSFORM(d3dts));
+
return WINED3D_OK;
}
More information about the wine-cvs
mailing list