Revision: 16453
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16453
Author:   blendix
Date:     2008-09-10 11:51:06 +0200 (Wed, 10 Sep 2008)

Log Message:
-----------

Fix for bug #17589: removing a lamp in the game engine with glsl
materials did not work correct.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_Light.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_Light.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Light.cpp 2008-09-10 03:34:08 UTC 
(rev 16452)
+++ trunk/blender/source/gameengine/Ketsji/KX_Light.cpp 2008-09-10 09:51:06 UTC 
(rev 16453)
@@ -65,6 +65,13 @@
 
 KX_LightObject::~KX_LightObject()
 {
+       GPULamp *lamp;
+
+       if((lamp = GetGPULamp())) {
+               float obmat[4][4] = {{0}};
+               GPU_lamp_update(lamp, 0, obmat);
+       }
+
        m_rendertools->RemoveLight(&m_lightobj);
 }
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to