wined3d: Clear the correct "activeLights" array in stateblock_copy().

This commit is contained in:
Henri Verbeet 2009-09-29 11:09:05 +02:00 committed by Alexandre Julliard
parent 664057ce6a
commit 4ed126f5dc
1 changed files with 1 additions and 1 deletions

View File

@ -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]) {