Stefan Dösinger : wined3d: Add the copied light to the right stateblock.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 27 06:07:40 CDT 2007


Module: wine
Branch: master
Commit: f7530729d5854e3cc1750efc4882c9f154352835
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f7530729d5854e3cc1750efc4882c9f154352835

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Aug 16 13:30:42 2007 +0200

wined3d: Add the copied light to the right stateblock.

---

 dlls/wined3d/stateblock.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 6ab6247..dfe62c9 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -186,8 +186,8 @@ void stateblock_copy(
             PLIGHTINFOEL *light = LIST_ENTRY(e1, PLIGHTINFOEL, entry), *light2;
             light2 = HeapAlloc(GetProcessHeap(), 0, sizeof(*light));
             memcpy(light2, light, sizeof(*light));
-            list_add_tail(&This->lightMap[l], &light2->entry);
-            if(light2->glIndex != -1) This->activeLights[light2->glIndex] = light2;
+            list_add_tail(&Dest->lightMap[l], &light2->entry);
+            if(light2->glIndex != -1) Dest->activeLights[light2->glIndex] = light2;
         }
     }
 




More information about the wine-cvs mailing list