[PATCH 3/5] wined3d: Clear the correct "activeLights" array in stateblock_copy().
Henri Verbeet
hverbeet at codeweavers.com
Tue Sep 29 04:09:05 CDT 2009
---
dlls/wined3d/stateblock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 0cd3e43..5692205 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -202,7 +202,7 @@ static void stateblock_copy(IWineD3DStateBlock *destination, IWineD3DStateBlock
Dest->scissorRect = This->scissorRect;
/* Lights */
- memset(This->activeLights, 0, sizeof(This->activeLights));
+ memset(Dest->activeLights, 0, sizeof(Dest->activeLights));
for(l = 0; l < LIGHTMAP_SIZE; l++) {
struct list *e1, *e2;
LIST_FOR_EACH_SAFE(e1, e2, &Dest->lightMap[l]) {
--
1.6.0.6
More information about the wine-patches
mailing list