Commit 4ed126f5 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 664057ce
......@@ -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]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment