Module: wine Branch: master Commit: 4ed126f5dcbdf99ba03c58e85023b44e8762e405 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4ed126f5dcbdf99ba03c58e850...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Sep 29 11:09:05 2009 +0200
wined3d: Clear the correct "activeLights" array in stateblock_copy().
---
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]) {